The USPS shipping quote module is returning: "undefined: Invalid Country Name" when during checkout when the country selected is "United Kingdom". The system is working fine for other countries.

uc_countries contains the following: 826 United Kingdom GB GBR 1
which appears to be correct by http://ftp.univie.ac.at/netinfo/iso/iso3166-countrycodes.txt

Looking into the subject I came across this:
http://www.25thandclement.com/~william/USPS_ICL.html which suggest the UK should be GB-ENG or GB-WLS

Looking at the USPS site http://pe.usps.com/text/imm/fh_014.htm#ep3576772 it looks like the country code should be "GB"

This issue is making it impossible for me to accept orders from the UK.

Comments

rszrama’s picture

I think this might be a duplicate of http://drupal.org/node/317758. The problem is USPS seems to have their own standards separate from the ISO. :-/

nick@guillemot-kayaks.com’s picture

OK, there is a known fix for Korea, is there one for the United Kingdom until the issue gets resolved?

nick@guillemot-kayaks.com’s picture

Just had problems with an order from Thailand getting an invalid country. uc_countries had it as "Thai", it should be "Thailand".

Island Usurper’s picture