my.signContract
Sample code
copy
my.call('signContract', {authUrl:'${authUrl}'}, res=>{
if(res.resultCode == '0'){
console.log('signContract call success: ', JSON.stringify(res));
my.alert({
content: JSON.stringify(res),
});
}else{
console.log('signContract call failed: ', JSON.stringify(res));
my.alert({
content: JSON.stringify(res),
});
};
});Parameters
| Property | Type | Length | Required | Description |
authUrl | String | 512 | Yes | This parameter is the authorization string returned by the app to further the authorization process. |
Callback Parameter
| Property | Type | Description |
| authCode | String | authCode has a value. The authorization code assigned by app which can be used to obtain the access token for the agreement payment. The maximum length is 32. |
resultCode | String | result code |
resultMessage | String | result message |
Result Code
When error happens, the fail callback function will be executed. The error code can refer to the following table.
resultCode | resultMessage |
0 | success |
1002 | Internal error |
1003 | cancel by user |
1004 | network error |
3001 | The sign fails. |
3002 | The merchant's auto debit product contract is invalid |
3003 | Merchant status is invalid |
3004 | The authorization content does not exist |
1010 | User status frozen |
