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

Get full country name and country code #324

Open
redimongo opened this issue Apr 23, 2023 · 2 comments
Open

Get full country name and country code #324

redimongo opened this issue Apr 23, 2023 · 2 comments

Comments

@redimongo
Copy link

I am trying to get the full address including the country code and country name.

I am noticing for example that United States of America is being printed in it's short form USA which technically is correct, however the country code for USA is US.

Is there anyway to solve this?

Another example is Australia addresses get the word Australia at the end which we can match to our Countries json file

We can't match USA (while technically we can, it's not the right way to go around it)

@Tintef
Copy link
Owner

Tintef commented Aug 26, 2024

@redimongo where you able to solve this?

@redimongo
Copy link
Author

@redimongo where you able to solve this?

I can't see that we did solve it, what we did was work around it, so it was for our billing system where a client typed in their address and when would show them the billing in their local currency, so what we did was have a util script that would run when the address was changed. That sent the country name to our system that then got the short code, which then loaded the package in the users currency.

It's not the best way, but it was away around this small limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants