Please sign a contract with UnionPay for official use
End call method:
xlUnionPay=api.require('xlUnionPay');
xlUnionPay .xlUnionPay({params},callback(ret,err))
params: spId: Reserved parameter of UnionPay. The default value is spIdnull(For Android) sysProvider: This parameter is reserved for UnionPay. The default value isnull(Android) orderInfo: Order serial number, call the server to generate mode after signing with UnionPay: support two fixed values,"01"Means test,"00Callback (RET,err): ret: typeJSONObject internal field {result: Payment result}Copy the code
Return result:
The result:0Indicates that the payment operation has been cancelled -1Payment failure1Successful payment2Indicates that the network is not open or the order is invalid (Android)3Failed to install UnionPay service pack (Android)Copy the code