PayPal REST API为非美国帐户返回空的payer_info

时间:2014-06-06 20:55:45

标签: php api rest paypal

我正在使用PayPal REST API,当它返回确认&执行付款,我想从他们的PayPal账户中检索付款人信息,如姓名,地址,电话等,以便在DB中创建本地订单等。

我从[payer_info]获取PP付款人信息,通常一切正常。这是我在正常情况下获得的一个例子(对于api.sandbox.paypal.com):

[id] = PAY-9J918741MY200351GKOI7PUI
[create_time] = 2014-06-06T17:18:09Z
[update_time] = 2014-06-06T17:18:52Z
[state] = approved
[intent] = sale
[payer] =>
    [payment_method] = paypal
    [payer_info] =>
        [email] = admin@xiaose.me
        [first_name] = Denis
        [last_name] = Silinsky
        [payer_id] = PWHQN5FK5N8LN
        [shipping_address] =>
            [line1] = 1 Maire-Victorin
            [line2] = 
            [city] = Toronto
            [state] = Ontario
            [postal_code] = M5A 1E1
            [country_code] = CA
            [recipientName] = 

但现在所有的时间都发生了,几乎在所有(90%)的情况下,如果一个人从加拿大或澳大利亚付款,我会得到一个空白[payer_info]。以下是我得到的一个例子:

[id] = PAY-98X74297DD864450EKOJAT7Y
[create_time] = 2014-06-06T18:35:43Z
[update_time] = 2014-06-06T18:36:38Z
[state] = approved
[intent] = sale
[payer] =>
    [payment_method] = paypal
    [payer_info] =>
        [shipping_address] =>

我甚至专门为加拿大创建了一个测试帐户(在我使用美国帐户测试之前),但在测试模式下,一切正常,必要的数据会定期出现,但是一旦订单创建,就没有必要的数据地址在美国以外的客户。

如何处理这一切?

我可以在哪里获得这些数据(http://www.dropmocks.com/mFO2a5)?

it's info from my log file where you can see that some time no payer info

0 个答案:

没有答案