ZIP is invalid
-
Sometime on 04-Sep-2023 something changed and I started getting “ZIP is invalid” errors for all orders. I’m on GDP plugin 1.5.0. It appears you’ve changed some back-end logic or something in the iframe that has decided 9 digits for the ZIP and the dash separator for a total of 10 characters is invalid. I have verified this by removing the dash in a 5+4 ZIP and the error goes away. See additional info below.
I use a plugin to verify USA addresses to get/enforce a 5+4 ZIP code on all USA orders. It seems that when a 5+4 ZIP (including the normal dash separator that USPS provides and uses in their API call responses) is passed to the GDP plugin I get “ZIP is invalid” error at the top of the checkout page.
I have disabled all plugins except for WooCommerce, GDP and Stripe for testing purposes. All payment methods except GDP handle the 5+4 ZIP with a dash separator without issue.
Thinking it was a problem with the address validation plugin “ELEX WooCommerce Address Validation & Address Autocomplete Plugin” 1.7.0 I contacted their support and they have been trying to debug. When I checked Stripe in addition to the WC default methods no ZIP error.
As part of my own efforts to fix this I setup another test/demo site of my production site with yet another address verification plugin: WooCommerce Address Validator 3.1 on demo.stlbrits.com. This is where I was able to confirm the problem is with the GDP service/plugin because the same error occurs with a different address validation service and again only with the GDP payment option. If I manually remove the dash so the zip is 123456789 rather than 12345-6789 then the payment is attempted to be processed. So pretty clearly – something got broken on 04-Sep-2023 and because the plugin hasn’t changed it must be in your back-end data validation of payment requests being passed by the plugin.
Please investigate this and get a fix or whatever change was made reversed out. I use USPS bulk mail services and have to have a valid 5+4 ZIP code for all orders so this is a real issue for my site.
The page I need help with: [log in to see the link]
- The topic ‘ZIP is invalid’ is closed to new replies.