If you enter a state code longer than 3 characters (some foreign countries- Australia/New South Wales) you get:
a:2:{s:8:“@message”;s:83:“The length of the destination state or province exceeds the limit of 2 characters. “;s:5:“@code”;s:3:“840";}
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | a089caf538b506cca4ce9175805ce3d1e561c071.patch | 1.27 KB | rynnnner |
| #3 | commerce_fedex-2933218-address_resolution_in_australia-3.patch | 3.6 KB | mikelutz |
Comments
Comment #2
rynnnner commentedComment #3
mikelutzCan you test out the attached patch?
Comment #4
mikelutzThis seems to be a difference in the way the commerceguys addressing subdivides Australia and the way FedEx Handles it. Australian provences use 2-3 letter codes, and FedEx only wants 2 letter codes, so I made a new trait to resolve addresses on a country by country basis for situations like this. If other countries have issues with the address mapping, we can add them to the trait in the future.
Comment #5
mikelutzComment #8
mikelutzComment #9
rynnnner commentedAdd hong kong resolver.
Comment #10
mikelutzComment #11
mikelutzI'm switching this to 'needs work' since we are finding more countries with issues, and we will fix as we go.
Comment #13
mikelutzWe seem to be stable, so closing this issue. Please create a new issue with any further discovered address formatting discrepancies.
Comment #15
argogi commentedI'm seeing the same error for South Korea and Malaysia.