我有这种情况,我需要覆盖我的买家的送货地址,所以我在我的 PaypalIpnConfig.php 文件中得到了这个代码:
var $settings = array(
//more settings
'address1'=>'test address st',
'address2'=>'test address st 2',
'country'=>'United States',
'state'=>'Alaska',
'city'=> 'Anchorage',
'zip'=>'99501',
'address_override' =>'1'
);
但在重新加载我的网站后,我收到此警告:
Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.
我检查了一些与我的问题类似的问题,但是我没有得到我需要的答案
How to send Shipping address to Paypal, when using Paypal IPN
Paypal Address Override not working
什么可能是错的?
最佳答案
State 必须以 2 个字符的单词形式给出。 因此,在您的情况下,它将是:'state'=>'AL' 或其他内容
关于cakephp - Paypal 地址覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10696962/