获取PayPal Classic API中的付款人信息

huangapple go评论86阅读模式
英文:

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/

huangapple
  • 本文由 发表于 2015年6月10日 15:33:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/30749920.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定