Closed witekdev closed 8 years ago
It does flag it, but I guess we aren't detecting that correctly. Will fix when I get a chance.
ok, might be a good for you to see if you have the same issue on mountaineers if you reused the code?
Yep, will check whether it's a problem there too or if I just messed something up when moving things around.
Just checked in a fix so this will return a tax of 0 rather than breaking.
Ideally we would show the user a validation error that their address isn't recognized, but that's not straightforward since the tax calculation is decoupled from the form where they enter their address (tax is calculated when the checkout form loads, not when shipping is selected).
Discovered by chance If I supply an invalid address and/or zip for Washington state and select the state as WA I get this:
after hitting the "Proceed to payment" button on the shipping view.
Not sure why the WA Tax API doesn't flag this as an error. Test: Street: any street City: Seattle State; WA Zip: 97201 (which is Portland, OR)