我正在尝试在我的商店结帐处设置PayPal address_override,因为我的客户已经填写了他们的交货详细信息。

我正在使用快速结帐,然后从此处阅读文档开始:https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/

我已经将以下基本设置添加到了我的工作快递结帐代码(perl文件)中:

# -- build the request for Paypal
my $response = $useragent->post($api_endpoint,
    [
        'METHOD' => 'SetExpressCheckout',
        'VERSION' => '3.0',
        'PWD' => $API_PASSWORD,
        'USER' => $API_USERNAME,
        'SIGNATURE' => $API_SIGNATURE,

        'Amt' => $amount,
        'PAYMENTACTION' => 'Sale',
        'ReturnUrl' => $returnurl,
        'CANCELURL' => $cancelurl,
        'CURRENCYCODE' => $API_CURRENCYCODE,

        'address_override' => '1',
        'address1'  => $d_address1,
        'address2'  => $d_address2,
        'city'  => $d_city,
        'country'  => $country,
        'zip'  => $d_post_code

    ]
);


但是,这并不能覆盖我进入Pay​​Pal帐户时的地址,它仍然只是显示我存储的地址。

我读了这篇文章:
Paypal | Website Payment Standard | Adddress Override

和这个:
Paypal Address Override not working

希望有人可以告诉我我要去哪里,或者如果我错过了一步!任何帮助表示赞赏。

最佳答案

我在这里可能是错误的,但是您粘贴的API链接看起来与其余代码示例所使用的API并不相同?

搜索SetExpressCheckout会导致以下页面:https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/

我认为您需要使用ADDROVERRIDE参数而不是address_override以及该页面上需要的任何其他内容。

09-10 04:31
查看更多