my.tradePay
Start a payment transaction.
Sample Code
copy
my.tradePay({
  tradeNO: '201711152100110410533667792', // get the tradeNo from the server first
  success: (res) => {
    my.alert({
      content: JSON.stringify(res),
    });
  },
  fail: (res) => {
    my.alert({
      content: JSON.stringify(res),
    });
  }
});Parameters
| Field | Type | Mandatory | Description | 
| tradeNO | String | N | The trade number | 
| orderStr | String | N | A string of complete payment parameters, which is recommended to be obtained from the server | 
| paymentUrl | String | N | The url of payment page | 
Success Callback Function
The incoming parameter is of the Object type with the following attributes:
| Field | Type | Mandatory | Description | 
| resultCode | String | Y | The result code of the pay process | 
Result Code
| resultCode | Description | 
| 9000 | Pay success | 
| 8000 | Trade is processing | 
| 4000 | Pay failed | 
| 6001 | User cancel to pay | 
| 6002 | Network exception | 
| 6004 | Unknown pay result, may be success | 
| 99 | User click forget password button and quite the pay page(iOS only) | 
