How to retrieve buyer billing information from PayPal ExpressCheckout via NVP?

ⅰ亾dé卋堺 提交于 2020-01-25 21:12:09

问题


I have integrated Paypal ExpressCheckout using NVP in a site but I only receive information related to the transaction via GetExpressCheckoutDetails but not the billing information such as buyer name, address. I have used the v65 of the API and PHP. Is there a way to get/retrieve buyer information when they login to PayPal and pay using ExpressCheckout ?

An example how I used it.

$nvpstr = '&TOKEN=' . $token . etc ...
$resArray = hash_call("GetExpressCheckoutDetails", $nvpstr);
print_r($resArray);

But I receive only transaction details without buyer information.


回答1:


Only the shipping information would be returned if you are requiring shipping. The billing information is not returned. If you are needing the billing information returned, you would need to contact PayPal Business Support or your account manager if you have one and request the option to be turned on to return the billing information. In addition to having this turned on, you also need to pass over the variable REQBILLINGADDRESS in your SetExpressCheckout API call and you need to set the value to “1”.

REQBILLINGADDRESS (Optional) Is 1 or 0. The value 1 indicates that you require that the buyer’s billing address on file with PayPal be returned. Setting this element will return BILLTONAME, STREET, STREET2, CITY, STATE, ZIP, and COUNTRYCODE. Limitations: One character.



来源:https://stackoverflow.com/questions/18072740/how-to-retrieve-buyer-billing-information-from-paypal-expresscheckout-via-nvp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!