Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partner, seller ID & privateKey during Pay method #63

Open
jibon57 opened this issue Feb 18, 2017 · 0 comments
Open

Partner, seller ID & privateKey during Pay method #63

jibon57 opened this issue Feb 18, 2017 · 0 comments

Comments

@jibon57
Copy link

jibon57 commented Feb 18, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant