Forums / Bug Reports / [Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

[Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

Locked

Views: 3,065

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
23 May 2010, 3:26 AM
#1
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

[Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

Up until 1.3.9c I have limited my payment zone to the United States of America. I had to change that zone setting to -none- in order to allow a checkout from within the USA.

23 May 2010, 8:01 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: [Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

Are the address_book entries for those customers properly showing full proper US addresses?
Can you look in the address_book table and report the country ID and the zone id? is the state field properly blank (as it should be for US addresses)?

.
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.

23 May 2010, 2:13 PM
#3
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: [Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

Address are good, full, and proper.

23 May 2010, 3:06 PM
#4
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: [Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

I Can duplicate the issue with a new and fresh install using 139c.

  1. Created a zone called USA for USA and all its states
  2. Installed PayPal Express checkout and limited its use to USA
  3. Installed USPS.
  4. Add an item to the cart and checkout with PayPal express.
  5. Login to my personal PayPal account and accept the purchase.

Then directed back to my shopping cart with the following message.

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.

23 May 2010, 4:23 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: [Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

stagebrace:

Up until 1.3.9c I have limited my payment zone to the United States of America. I had to change that zone setting to -none- in order to allow a checkout from within the USA.

stagebrace:

I Can duplicate the issue with a new and fresh install using 139c.

  1. Created a zone called USA for USA and all its states
  2. Installed PayPal Express checkout and limited its use to USA
  3. Installed USPS.
  4. Add an item to the cart and checkout with PayPal express.
  5. Login to my personal PayPal account and accept the purchase.

Then directed back to my shopping cart with the following message.

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.
stagebrace,
Thanks for the detailed steps to reproduce the problem.
We're working on a fix.

.
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.

23 May 2010, 4:32 PM
#6
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: [Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

:clap:
stagebrace is happy.

23 May 2010, 5:31 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: [Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

The fix is pretty simple:
/includes/modules/payment/paypalwpp.php
at line 1669 you'll find this section of code
Simply add the 2 lines as shown:```
// reset all previously-selected shipping choices, because cart contents may have been changed
if (!(isset($_SESSION['paypal_ec_markflow']) && $_SESSION['paypal_ec_markflow'] == 1)) unset($_SESSION['shipping']);
[B] global $order;
$order->info['total'] = $response['AMT'];
[/B]


Code added to v1.3.9d

.
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.

23 May 2010, 5:42 PM
#8
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: [Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

My test show it does work. I will put it into the working store and watch for errors.
Thank you

Dennis

30 May 2010, 2:31 AM
#9
loganwest avatar

loganwest

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Re: [Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

I'm having that same problem, but the fix you suggested didn't work for me. I get the same error when I follow the same steps he mentioned on my site. I've got the USA country and stats loaded into my Countries and Regions too. Any suggestions would be greatly appreciated.

Thanks.

Joe

30 May 2010, 2:34 AM
#10
loganwest avatar

loganwest

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Re: [Done v1.3.9d] Zone restrictions problem with PayPal Express Checkout

I just noticed I'm still on version 1.3.8. I'll update it and see if that makes any difference.