Jump to content

IPS.Commerce 4.6.10 : Bug with Stripe and country « France Metropolitan »


Go to solution Solved by Marc Stridgen,

Recommended Posts

Hi Invision,

IPS.Commerce allows us to choose the country « France Metropolitan » as a customer address.
This country code is « FX » in IPS.Commerce.

However, when trying to make a Stripe payment with this country, there is an error:

ips-fx-error.png.738fa2d4582ed1dc9b5465277455fbb2.png

 

It turns out that Stripe refuses this country, as you can see in their log:

 

stripe-fx-error.thumb.png.7fe3cf5ba3b62366f1dc527f6f00b6ad.png

 

Stripe error message is:

Quote
invalid_request_error - billing_details[address][country]

Country 'FX' is unknown. Try using a 2-character alphanumeric country code instead, such as 'US', 'EG', or 'GB'. A full list of country codes is available at https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements

 

 

=> FX country code is unknown.

The solution would be to remove the FX country code in IPS.Commerce.
That wouldn't be a big deal, because no one uses it: all French people uses France (country code FR) as their country.

Thank you!

 

Link to comment
Share on other sites

  • 1 month later...
20 hours ago, Marc Stridgen said:

This issue has been resolved in 4.6.12, which has just been release. Please let us know if you still have any issues once you have upgraded to that release.

Hi Marc,

In the 4.6.12 Commerce releases notes, it is indicated:

  • Removed the FX country code for france.

 

However, the address form field uses the values from \IPS\GeoLocation::$countries

And in the 4.6.12 version of \IPS\GeoLocation, we can see at line 105:

		'FX', // France, Metropolitan

 

=> The FX code has not been removed.

As a result, when adding / modifying an address, the « France, Metropolitan » country is still here:

image.png.d135988900eb5bb48785511ffb8c6a52.png

 

Therefore, I think the issue with Stripe will still happen.

Thank you,

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...