Results 1 to 6 of 6
  1. #1
    Join Date
    May 2014
    Posts
    7
    Plugin Contributions
    0

    Default Specifing Default Country for Paypal Express

    When a customer clicks the "Checkout with Paypal" button to make a payment with the Paypal Express, the Paypal payment page shows the United States as the default country, but I'd like to show another country such as Australia by default.

    How can I specify the default country?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Specifing Default Country for Paypal Express

    I thought it made its selection according to your store's default, as set in Admin->Configuration->My Store and/or Shipping/Packaging ?
    .

    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. #3
    Join Date
    May 2014
    Posts
    7
    Plugin Contributions
    0

    Default Re: Specifing Default Country for Paypal Express

    Thanks for your reply.
    Although I set both of them Australia, the Paypal payment page still showed the United States.

    When I tried to find a solution on the internet, I found a conversation below.

    "Is there a way to set the country code for PayPal Express checkout, so when the user is redirected to paypal, it's auto selected their country from the country drop down list instead of showing the default 'united states'?"

    "Try passing "card" => array("country" => "au"), pretty sure that will work"

    "Works great! Thanks!"

    I was not sure how I could apply it to Zen Cart, though. I would appreciate your help.

  4. #4
    Join Date
    May 2014
    Posts
    7
    Plugin Contributions
    0

    Default Re: Specifing Default Country for Paypal Express

    PS. According to Paypal official website, I need to set a variable called "country" to set the default shipping/billing country.

    https://developer.paypal.com/docs/cl...htmlvariables/

    Could you help me set this variable for Zencart?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Specifing Default Country for Paypal Express

    The document you point to is for a different architecture, not for Express Checkout. Zen Cart's Express Checkout code already correctly passes country information.

    I just set up a brand new install of v1.5.1, then enabled PayPal Express Checkout and inserted my API credentials.
    I then added a product to my shopping cart and clicked the orange PayPal button. It defaulted to United States, as expected. I did nothing on that page; I just clicked the Back button in my browser to return to the store.
    Then I went into my Admin->Configuration->My Store settings and changed Country to Australia.
    I went back to my store's shopping cart page, with the same item in the cart, and clicked the orange paypal button again.
    It took me to the PayPal site, with Australia as the default country.

    So, it seems the original Zen Cart code is fine.
    In what ways have you altered your site from the original Zen Cart code? or original Zen Cart data for countries? or Zones? Or any other admin settings?
    .

    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.

  6. #6
    Join Date
    May 2014
    Posts
    7
    Plugin Contributions
    0

    Default Re: Specifing Default Country for Paypal Express

    I see.
    Thank you for testing out the express checkout with the new install of zen cart.
    It seems that I did not understand my test results of the Paypal express checkout and the Paypal official pages properly.
    The result you were able to get was what I was trying to achieve, so it seems that I do not have to change my paypal express checkout settings.

    I appreciate your help.

 

 

Similar Threads

  1. Replies: 11
    Last Post: 4 Oct 2015, 09:50 AM
  2. v151 Country restriction with Paypal Express
    By honda2007 in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 1 Jan 2014, 02:37 PM
  3. Paypal default country and currency
    By flamer in forum PayPal Express Checkout support
    Replies: 15
    Last Post: 26 Apr 2011, 07:56 PM
  4. wrong country with Paypal Express
    By weber in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 9 Jun 2010, 09:51 PM
  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

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