Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default 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. #2
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

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

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: PayPal Express Checkout: Unsupported country is allowed

    Quote Originally Posted by DrByte View Post
    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.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: PayPal Express Checkout: Unsupported country is allowed

    Quote Originally Posted by lat9 View Post
    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...

  7. #7
    Join Date
    Mar 2006
    Location
    Rosebud, Victoria, Australia
    Posts
    310
    Plugin Contributions
    2

    Default Re: PayPal Express Checkout: Unsupported country is allowed

    Quote Originally Posted by DrByte View Post
    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

  8. #8
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default 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!!

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PayPal Express Checkout: Unsupported country is allowed

    Quote Originally Posted by lloyd_borrett View Post
    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.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PayPal Express Checkout: Unsupported country is allowed

    Quote Originally Posted by lankeeyankee View Post
    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 17 Apr 2015, 11:38 AM
  2. v139h Express Checkout Unsupported operand in functions_taxes.php
    By Mad Maxx in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 10 Apr 2014, 10:49 PM
  3. v137 "shipping address country empty" gives error in paypal express checkout
    By amruta2104 in forum General Questions
    Replies: 4
    Last Post: 2 Aug 2012, 08:19 PM
  4. Replies: 6
    Last Post: 2 Jun 2010, 09:39 AM
  5. Paypal Express returning country not recognized after I deleted country/zone data
    By danilyn22 in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 23 Apr 2009, 12:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR