💰This is a alipay plugin of cordova.
- Ali payment for app.
cordova plugin add cordova-plugin-x-alipay --variable aliappid=YOUT_ALIPAYAPPID
or
ionic plugin add cordova-plugin-x-alipay --variable aliappid=YOUT_ALIPAYAPPID
var params = {
order: 'alipay_sdk=alipay-sdk-java-dynamicVersionNo&app_id=2017062907602740&...', // this string return by back-end
}
xAlipay(params, function() {
console.log('success');
}, function (error) {
console.log(error);
});
XAlipay_StandbyCallback_Success
for iOS only. Will call when app launch alipay and self been killed. More InfoXAlipay_StandbyCallback_Error
for iOS only. Will call when app launch alipay and self been killed. More Info
document.addEventListener('XAlipay_StandbyCallback_Success', function(event){
alert(event);
}, false);