Please contact the merchant as the shipping address provided by the merchant is invalid

来源:互联网 发布:机械加工工时软件 编辑:程序博客网 时间:2024/06/05 12:04

http://help.qtmsoft.com/index.php?title=X-Cart:PayPal#Unable_to_process_payment._Please_contact_the_merchant_as_the_shipping_address_provided_by_the_merchant_is_invalid.2C_and_the_merchant_has_requested_that_your_order_must_be_shipped_to_that_address

http://www.ztup.cc/thread-3538-1-1.html

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

Such error message appears on the PayPal checkout page when customer's address does not pass PayPal's validation.

Note: This error is relevant to PayPal Website Payments Standard only

A valid address is specified by customer when checking out using X-Cart. The address is used for the calculation of shipping and tax charges before customer proceeds to PayPal's  payment page. When customer submits an order to be paid with PayPal, the customer's address is passed from X-Cart to PayPal along with the other payment details.

If the customer's address submitted to the server does not pass PayPal's validation, the server returns the error specified in the question title. To fix it and continue with the payment, the customer should go back to the store, correct the address and submit the order again.

Please  note that the customer's address submitted from X-Cart to PayPal overrides the PayPal member's stored address. The customer can see the submitted address but cannot edit it.

There is also another way to eliminate the error. You can allow your customers to edit the submitted address or select a different address that the customer has on his or her PayPal account. To do so, please make the following changes in <xcart-dir>/payment/ps_paypal.php:

Find the line:

"address_override" => 1,

and replace it with this one:

"address_override" => 0,
Note: Changing this option may lead to a situation when the address specified by the customer during checkout in X-Cart and saved in the X-Cart order details differs from the address in the relevant PayPal transaction details. This can cause confusion as to which address the order should be shipped to. Besides the pre-calculated shipping and tax costs may not correspond to the address specified in the relevant PayPal transaction details.


Note: There is a special option intruduced in version 4.4.0 - "Address override", it is available on the PayPal configuration page in the X-Cart admin back-end
 
 
==================================================================================================================================
 错误提示: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.
  中文版本是:无法处理付款。由于商家提供的送货地址无效,而且商家要求您的订单必须送到该地址,因此,请与该商家进行联系。
  其实昨天网友已经告诉我了一个解决办法,当时没看。今天在网上找到了他给的方法,如下:在app/code/core/Mage/Paypal/Model/Standard.php第158行有这样一句:‘address_override’ => 1,废了它就行—把它变成注释(在前面加“//”),或者直接删掉。
  这个方法的可行性在magento官网论坛上已经被讨论过,据说它可能导致的结果就是:magento不会传送shipping信息给paypal,订单停留在pending状态,因为Paypal收到的付款金额跟magento系统的订单金额不同(差一个运费)。
  我是宁可信其有,所以不敢用这个方法。探究了该错误出现的原因才知道,这不是一个bug,应该也无需为它改动系统代码,之所以有这样的提示,是因为:输入的地址是非真实地址,所以在测试的时候随便按键盘输入街道城市信息大都会导致这种错误。说白了它是paypal在地址环节对客户和订单的一个过滤。我用另一个站的客户信息来测试,没再出现这样的错误。
原创粉丝点击