Sensei
- Join Date:
- Jan 2004
- Posts:
- 63,515
- Plugin Contributions:
- 176
"unable to use PayPal to process orders from the geographic region you selected"
Someone sent me logs from an instance where this error came up:
We are sorry for the inconvenience; however, at the present time we are unable to use PayPal to process orders from the geographic region you selected as your PayPal address. Please continue using normal checkout and select from the available payment methods to complete your order.
In the past most of the research to determine its cause was geared around customer address info. But in this case something else stood out, and the following fix worked for them.
I've not had a chance to do extensive testing with all possible configurations, but I'm offering this for others to try out and share feedback:
/includes/modules/payment/paypalwpp.php
Line 1755 (as of v1.5.4)
Change this:
$order->info['total'] = urldecode($response['AMT']);
to the following, which basically just adds some conditional checks in front of the existing logic on that line:
if ($order->info['total'] < 0.01 && urldecode($response['AMT']) > 0) $order->info['total'] = urldecode($response['AMT']);
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.