Forums / Bug Reports / PayPal Express Checkout: Unsupported country is allowed

PayPal Express Checkout: Unsupported country is allowed

Views: 2,689

Results 1 to 12 of 12
2 Oct 2015, 2:10 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

PayPal Express Checkout: Unsupported country is allowed

I've got a store where multiple countries have been removed from the countries table. If a customer uses the PayPal Express Shortcut button to pay for their order and their country is not present in the countries table, instead of disallowing the unsupported country the country is improperly changed to United States and the order is processed (with the incorrect address).

If, instead, I'd gone to the trouble of restoring all countries to the countries table and disabling those that are not supported by the store, all addresses would be allowed because the countries-table checks performed by the paypalwpp.php module don't include checking that the country is actually enabled.

I'm in the process of evaluating what changes are necessary to correct this issue and wanted to post the symptoms in case someone has already discovered and corrected the issue.

2 Oct 2015, 2:42 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: PayPal Express Checkout: Unsupported country is allowed

Question which probably would be obvious if the code were reviewed or independently tested, but if paypal express is the method of payment and instead of using the express checkout button payment selection is deferred to the checkout_payment page, this problem does not occur in either country arrangement? (Assuming checkout_shipping doesn't first preclude purchase or is bypassed in standard processing such as with virtual or download product.)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

2 Oct 2015, 7:12 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: PayPal Express Checkout: Unsupported country is allowed

mc12345678, that's the *standard *answer (turn off the Express Shortcut button). My client has seen an increase in customers since enabling the shortcut, so would like the process to function properly.

If you go through the "normal" checkout process, the create-account page won't let you create an account based on an unconfigured/unsupported country.

2 Oct 2015, 7:21 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Checkout: Unsupported country is allowed

Yes, it doesn't take any action to deny the sale if the country doesn't match.

Question: If you have a paying customer who has gone to the trouble of authenticating in PayPal and has proceeded through checkout, are you saying your client wants to tell them they don't want that customer's business, and just send them away?

ie: what would you actually like the code to do if the country doesn't match?
Is the action different based on whether the shopping-cart contains virtual vs physical goods?
What's the niche/reason for this merchant refusing sales from certain countries?

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

2 Oct 2015, 7:37 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: PayPal Express Checkout: Unsupported country is allowed

DrByte:

Yes, it doesn't take any action to deny the sale if the country doesn't match.

Question: If you have a paying customer who has gone to the trouble of authenticating in PayPal and has proceeded through checkout, are you saying your client wants to tell them they don't want that customer's business, and just send them away?

ie: what would you actually like the code to do if the country doesn't match?
Is the action different based on whether the shopping-cart contains virtual vs physical goods?
What's the niche/reason for this merchant refusing sales from certain countries?
I don't know the reason that the countries were removed initially (they were gone before the store was upgraded to v1.5.4), so I'll need to ask!

If the country isn't configured, I think (in general) that the processing in ec_step2_finish should proceed down the path that's there today if the United States (which is set as the default) isn't configured (without regard to the virtual/physical nature of the cart): The EC process is terminated with a message. It's kind of no different than going through the "normal" checkout process, trying to create an account and finding that your country isn't in the drop-down list. You'll either call/email the store or go find someplace else.

2 Oct 2015, 11:20 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: PayPal Express Checkout: Unsupported country is allowed

lat9:

mc12345678, that's the *standard *answer (turn off the Express Shortcut button). My client has seen an increase in customers since enabling the shortcut, so would like the process to function properly.

If you go through the "normal" checkout process, the create-account page won't let you create an account based on an unconfigured/unsupported country.

Well good, then that closes the loop on my question (regardless of either a general or unique solution to follow) that there is no specific reason to avoid using PayPal Express as it is still possible to use PayPal Express to accomplish the desired limitation.

The increase in customers is an expected result of using the Express Shortcut button. Agree that it would be a problem for new customers but doesn't address performing the change on a system that has existing customers where a "scrub" is not performed of those "out of the service area". Regardless, the first part about PayPal Express properly prohibiting an out-of-the-service-area purchase when accessed from the checkout_payment page answered my question that could have been asked better. :)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

3 Oct 2015, 5:45 PM
#7
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Re: PayPal Express Checkout: Unsupported country is allowed

DrByte:

Question: If you have a paying customer who has gone to the trouble of authenticating in PayPal and has proceeded through checkout, are you saying your client wants to tell them they don't want that customer's business, and just send them away?

Well I for one have no intentions of proceeding with orders placed in our online dive shop going to a whole heap of countries like Nigeria, Zimbabwe, Zambia, Iran, Iraq, Ukraine, Uzbekistan, Sudan, Syria, Somalia, Nigeria, Libya, Ghana, Chad, Congo, etc. I don't care if PayPal thinks it's okay, I'm not going to waste time and risk losing money with them.

Best regards, Lloyd Borrett.

Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

3 Oct 2015, 10:15 PM
#8
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: PayPal Express Checkout: Unsupported country is allowed

We have also experienced this problem, it doesn't happen often so when we see it in the order, usually the warehouse is trying to print the shipping label and it doesn't validate, we then cancel and refund the order. But it would be helpful if it never got to that point in the first place. We have the shortcut from the shopping cart because we got a sizable bump in conversions with it there.

There are likely many users that want to block certain countries due to high incidence of fraud. We do not ship to Indonesia, China, Ukraine, Russia, Thailand due to too many fraudulent orders with stolen credit cards coming from those countries.


Zen Cart and it's community are the best!!

3 Oct 2015, 11:01 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Checkout: Unsupported country is allowed

lloyd_borrett:

Well I for one have no intentions of proceeding with orders placed in our online dive shop going to a whole heap of countries like Nigeria, Zimbabwe, Zambia, Iran, Iraq, Ukraine, Uzbekistan, Sudan, Syria, Somalia, Nigeria, Libya, Ghana, Chad, Congo, etc. I don't care if PayPal thinks it's okay, I'm not going to waste time and risk losing money with them.

Best regards, Lloyd Borrett.
Again I ask ... is this specific to physical goods, or also for virtual goods?

I'm trying to gather sufficient information to assemble a possible resolution to the problem, which suits all merchants, not just a couple shops.

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

3 Oct 2015, 11:03 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: PayPal Express Checkout: Unsupported country is allowed

lankeeyankee:

We have also experienced this problem, it doesn't happen often so when we see it in the order, usually the warehouse is trying to print the shipping label and it doesn't validate, we then cancel and refund the order. But it would be helpful if it never got to that point in the first place. We have the shortcut from the shopping cart because we got a sizable bump in conversions with it there.

There are likely many users that want to block certain countries due to high incidence of fraud. We do not ship to Indonesia, China, Ukraine, Russia, Thailand due to too many fraudulent orders with stolen credit cards coming from those countries.
Thanks for indirectly stating that your concern is related to physical goods, and not related to virtual goods.

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

4 Oct 2015, 7:24 AM
#11
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: PayPal Express Checkout: Unsupported country is allowed

DrByte:

Thanks for indirectly stating that your concern is related to physical goods, and not related to virtual goods.

Sorry, I was being a guppy. Yes, we sell only physical goods. We do not sell any virtual goods.


Zen Cart and it's community are the best!!

4 Oct 2015, 8:50 AM
#12
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

Re: PayPal Express Checkout: Unsupported country is allowed

DrByte:

Again I ask ... is this specific to physical goods, or also for virtual goods?

Physical goods for me. But if the goods were virtual, I'd probably still block the same countries.

Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42