Android-Pay icon indicating copy to clipboard operation
Android-Pay copied to clipboard

Explanation about getSignAliOrderInfoFromServer and etc.

Open jibon57 opened this issue 7 years ago • 1 comments

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.

jibon57 avatar Aug 21 '17 09:08 jibon57

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

mayubao avatar Aug 22 '17 02:08 mayubao