cordova-plugin-alipay icon indicating copy to clipboard operation
cordova-plugin-alipay copied to clipboard

Partner, seller ID & privateKey during Pay method

Open jibon57 opened this issue 8 years ago • 0 comments

Hello,

Thanks for your plugin. At present we will need to add Partner, seller ID & privateKey inside the xml file but won't it be better if we could add this value during running pay method like this:

window.alipay.pay({
    partner: "My partner ID",
    seller: "seller email",
    privateKey: "rsa key",
    tradeNo: new Date().getTime(),
    subject: "测试标题",
    body: "我是测试内容",
    price: 0.02,
    notifyUrl: "http://your.server.notify.url"
}, function(successResults){alert(successResults)}, function(errorResults){alert(errorResults)});

I think it will be better solution too :)

Thanks Jibon

jibon57 avatar Feb 18 '17 10:02 jibon57