如何通过NVP从PayPal ExpressCheckout检索买家账单信息? [英] How to retrieve buyer billing information from PayPal ExpressCheckout via NVP?

查看:137
本文介绍了如何通过NVP从PayPal ExpressCheckout检索买家账单信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在站点中使用NVP集成了Paypal ExpressCheckout,但是我仅通过GetExpressCheckoutDetails接收与交易相关的信息,而没有诸如买家名称,地址之类的账单信息.我使用了API和PHP的v65.当买家登录PayPal并使用ExpressCheckout付款时,是否可以获取/检索买家信息?

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 ?

我如何使用它的示例.

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

但是我只收到交易详细信息,而没有买方信息.

But I receive only transaction details without buyer information.

推荐答案

如果您需要运输,则仅返回运输信息.不返回帐单信息.如果您需要返回帐单信息,则如果需要帐单信息,则需要与PayPal业务支持或您的客户经理联系,并要求选择打开帐单信息的选项.除了启用此功能外,还需要在SetExpressCheckout API调用中传递变量REQBILLINGADDRESS,并且需要将值设置为"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 (可选)为1或0.值1表示您要求退还购买者的PayPal帐单地址.设置此元素将返回BILLTONAME,STREET,STREET2,CITY,STATE,ZIP和COUNTRYCODE. 局限性:一个字符.

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.

这篇关于如何通过NVP从PayPal ExpressCheckout检索买家账单信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆