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_state_code() should return state code instead of state name #1066

Closed
wants to merge 1 commit into from

Conversation

shendykurnia
Copy link
Contributor

I encountered this problem when I realize PayPal returns Qld for Queensland, Australia. While in WooCommerce, the valid state code is QLD, get_state_code('AU', 'Qld') will return 'Qld'.
Also, I notice get_state_code() should return the code instead of the name, even for non-US countries.

@iMansoorAliKhan
Copy link

iMansoorAliKhan commented Mar 29, 2018

Thanks for the commit, we will review and merge that into next release.

@angelleye
Copy link
Collaborator

We have merged this and it will be included in our 1.4.9 update that we'll release this week. Thanks!

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

Successfully merging this pull request may close these issues.

4 participants