cakephp - Paypal 地址覆盖

标签 cakephp paypal

我有这种情况,我需要覆盖我的买家的送货地址,所以我在我的 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' 或其他内容

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables#id08A6HI0J0VU

关于cakephp - Paypal 地址覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10696962/

相关文章:

php - 查找查询中返回的奇怪数据结构

Paypal 立即购买按钮 - 确认付款已提交

session - CakePHP 3 丢失身份验证 session

php - 如何根据 cakephp 中不同表的结果从数据库表中获取结果?

php - 用自适应支付取代 paypal express

android - 什么需要在android中创建paypal按钮?

paypal - 用于定期订阅的 Dodirectpayment api

php - PayPal IPN 的自动销售税?

php - 在 CakePhp 上创建多列页面的最佳方式

authentication - 如何从身份验证器重定向到外部身份验证端点?