Stripe and compatibility with ISO geographic codes

Stripe and compatibility with ISO geographic codes

Merchants can create their Stripe account in several countries. Here is the complete list: https://stripe.com/global?locale=en
For the Stripe module to function correctly on your site, two parameters must be correct.

1) The country of your online shop must be part of the list of countries where Stripe is active.
2) The ISO country code specified on PrestaShop is in the correct format.

If there are anomalies on any of these elements, the payment cannot be finalised on the site.
If you open the console on your browser with the F12 key, you will see an error similar to this:



In the example image, we see that the error is in the ISO code 'It'.
Let us see in detail how to correct these errors.

1) The country of your online shop must be part of the list of countries where Stripe is active.

You can check this parameter in the Back Office.



The country of your shop may not be identical to the country of your Stripe account.
You need to make sure that the country of your shop is in the list of countries where Stripe is operational.

2) The country ISO code specified on PrestaShop is in the correct format.
Stripe uses ISO codes in two capital letters.
You can find the correct ISO codes at this address: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

For Italy we can see, in the Alpha-2 column, the code 'IT'.
This explains the error in the example image.

Please check PrestaShop for the ISO codes specified for:
- the country where your Stripe account is registered
- the country where your online shop is based
- the active selling countries



If the format is incorrect, you can change the specified ISO code by clicking on the "Edit" button on each line.

After you have done this, check that the payment with Stripe is working again and that the error in the console is no longer visible.
    • Related Articles

    • How to make a partial refund for a Stripe order?

      On PrestaShop it is possible to fully or partially refund an order. – The refund can be made on the entire order, including shipping costs. – The refund can be partial if you want to refund only part of the items included in the order. To make a ...
    • How about Stripe Webhook ?

      Webhooks are used to notify events, such as when a client registers in the Dashboard Stripe. In any case, your payments with Stripe work well with or without the Webhooks. Webhooks operate independently of payments via Stripe.  So if you have a ...
    • Commissions on a Stripe payment

      Stripe does not charge a monthly commission. Here is the pricing information: https://stripe.com/gb/pricing Stripe also supports several cardless payment methods. Here you will find a list of fees related to each payment method, which are assessed ...
    • General Informations of Stripe Module

      The Stripe module immediately accepts payments by Visa, MasterCard and American Express (no VAD contract to open with your bank). Why Use Stripe: Improve your conversion rate by providing an optimal payment experience for your customers. Stripe ...
    • Stripe doesn’t appear in front office

      If the Stripe form doesn’t appear in your shop, you have to check the payment preferences in the PrestaShop back office. are correctly configured. Open the page Payment methods > Preferences. Check that the Stripe box is checked for the desired ...