New PayPal Plugin

  • Posts: 153
  • Thank you received: 12
  • Hikashop Business
2 years 1 month ago #345676

-- url of the page with the problem -- : jouets.idimweb.net
-- HikaShop version -- : 4.6.2
-- Joomla version -- : 4.2.3
-- PHP version -- : 8.1.11

Hi,

I've set up the new PayPal Plugin but I can't make it work. I have a message "Invalid Country Code". The countries' codes I set up are correct (AFAIK) so I can't figure out what I missed.

Would it be possible for you to help me?

Thanks

Sandra

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 1 month ago #345682

Hi,

The country codes needs to be compatible with what PayPal wants, and not correct as per other rules. That's why HikaShop comes with a list of countries with the codes entered so that they are what payment gateways expect and we can realy on these in the payment plugins. Some payment plugins adapt these default codes to others when necessary.

I can see you're using extra country zones you've created in the menu System>Zones.
That's possible, but in that case, you need to enter for them one of the codes supported by your payment gateway. For PayPal :
developer.paypal.com/api/rest/reference/country-codes/
For example, since Saint Barthélémy is not in the list, and since it's an overseas collectivity of France ( en.wikipedia.org/wiki/Saint_Barth%C3%A9lemy ), even though wikipedia states that the 2 letters ISO code for it should be BL, I suppose you want to use the code for France which is FR

The best of course is to contact PayPal support and check with them which country code you should use for each island. They'll know better than me what they want you to use for them :)

Please Log in or Create an account to join the conversation.

  • Posts: 153
  • Thank you received: 12
  • Hikashop Business
2 years 1 month ago #345691

Thanks a lot Nicolas.

I've sent a message to PayPal. Let's see

Sandra

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum