Jump to content

Featured Replies

Posted

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!

 

Solved by Marc

Go to solution
  • Community Expert

Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.

 

  • 1 month later...
  • Community Expert
  • Solution

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.

  • Author
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,

It was removed from a javascript file which was handling addresses but not from the IPS\Geolocation class.

I‘ve reopened the issue to take another look at this.

Recently Browsing 0

  • No registered users viewing this page.