Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 'Country is invalid' #5

Open
rvdsteege opened this issue Jan 30, 2023 · 0 comments
Open

Error 'Country is invalid' #5

rvdsteege opened this issue Jan 30, 2023 · 0 comments

Comments

@rvdsteege
Copy link
Member

ICEPAY requires a country when starting a payment. We currently determine the country in the following way:

  1. billing address country
  2. logged in user: language setting from user profile
  3. browser language setting (Accept-Language header) if it contains the 'country part' (e.g. US for en-US, but ignoring nl)
  4. site language from general settings

With for example our built-in forms, a user that is not logged-in and uses en-US as browser language and using site language nl_NL will not be able to pay because of an error:

Country is invalid

Can we improve upon this?

Suggestion from customer:

Of een extra feature in de plugin zelf om de country code met de hand te zetten op de site taal te overriden?

Internal Help Scout ticket: https://secure.helpscout.net/conversation/2138120837/25131

This issue could possibly be resolved with #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant