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

Explanation about getSignAliOrderInfoFromServer and etc. #19

Open
jibon57 opened this issue Aug 21, 2017 · 1 comment
Open

Explanation about getSignAliOrderInfoFromServer and etc. #19

jibon57 opened this issue Aug 21, 2017 · 1 comment

Comments

@jibon57
Copy link

jibon57 commented Aug 21, 2017

Hello,

First of all thanks for the library. I am trying to implement your plugin to NativeScript. Will you please provide the following information?

How to run getSignAliOrderInfoFromServer() method? Will you please explain little bit or show us an example?
setPrepayId(prepayid)//pre pay id of weChat. How we can get it?

It will be better if you could share an example app with us so that we can understand it easily. But you already did a great job. Just need an example app for understanding everything perfectly.

Thank you.

@mayubao
Copy link
Owner

mayubao commented Aug 22, 2017

I am so sorry, and I could not offer you some exmaple.
The example needs cooperation with the server developers, and something about payment info that get from server API.

But I can explain what the two method you don't understand.

  1. getSignAliOrderInfoFromServer() method , which get sign order info from server api, you should contact with your server developers something about sign payment info.

  2. setPrepayId(prepayid) method, parameter 'prepayid' include the payment info about order price. And the Wechat app will call the Payment UI to pay it. And parameter 'prepayid' is get from server API

If you don't quite understand these, please read the official document.

Document

wehcat pay official document

https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=8_5

ali pay official document

https://doc.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.sdGXaH&treeId=204&articleId=105296&docType=1

@jibon57

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

2 participants