英文:
Getting the Payer Information in PayPal Classic API
问题
我目前正在使用PayPal的经典API创建一次性付款,但是当我调用GetExpressCheckoutDetails时,我没有收到有关付款人的任何信息。
注意:我正在使用Google Go作为编程语言。
英文:
I am using at the moment the Classic API from PayPal to create a one time payment, however when I called the GetExpressCheckoutDetails, I don't receive any information about the Payer.
Notice: I am using Google Go as a programming language
答案1
得分: 1
这取决于你何时调用GetEC。GetEC(GetExpressCheckoutDetails)不一定会返回付款人信息,因为付款人可能尚未出现。
只有在付款人同意付款(他/她登录到PayPal并填写正确的信息并点击“继续”或“支付”按钮)后,才能获得付款人信息和付款人ID,这意味着在这种情况下,你将在付款人同意付款并返回到你的系统进行DoEC之后调用GetEC。这样,GetEC将提供给你付款人信息。
这是GetEC的文档:
https://developer.paypal.com/docs/classic/api/merchant/GetExpressCheckoutDetails_API_Operation_NVP/
英文:
It depends on when you call GetEC. GetEC (GetExpressCheckoutDetails) doesn't necessarily respond with the payer info, because the payer may not be present yet.
Payer info and Payer ID are only available once the payer agrees to pay (he/she signs into PP and fills in the right info and clicks the Continue or Pay button), which means in this case you'd be calling GetEC AFTER the payer agrees to pay and gets back to your system for DoEC. This way GetEC will give you payer info.
Here is GetEC doc:
https://developer.paypal.com/docs/classic/api/merchant/GetExpressCheckoutDetails_API_Operation_NVP/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论