Title: Invalid Zip Code
Last modified: September 19, 2019

---

# Invalid Zip Code

 *  Resolved [jedfirestone](https://wordpress.org/support/users/jedfirestone/)
 * (@jedfirestone)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/)
 * I wanted to post this in case anyone else has this issue. I submitted a support
   ticket 3 days ago with no response, but eventually was able to figure out my 
   issue.
 * If you run into an issue where you can’t process transactions and you get this
   error, here is what you need to do. it may or may not affect everyone – it did
   NOT affect everyone on our site. Some browsers didn’t process the css maybe? 
   I am not sure why.
 * Go here ..wp-content > plugins > woocommerce-square > assests > css > frontend
 * Edit wc-square.scss Last code of the file is this
 *     ```
       .wc-square-credit-card-card-postal-code-parent.hidden {
       		display: none;
       	}
       ```
   
 * Remove it!
 * Then go to the wc-square.min.css file and remove the same entry, last line of
   the file.
 * Then clear your cache and reload and you will see the Postal Code field.
 * Enjoy your working plugin!
    -  This topic was modified 6 years, 10 months ago by [jedfirestone](https://wordpress.org/support/users/jedfirestone/).

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [erotic1](https://wordpress.org/support/users/erotic1/)
 * (@erotic1)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11950931)
 * I have been going nuts with this same issue. After the last Square plugin update
   we’ve had 10 customers call and say they can’t place orders because they are 
   getting invalid zip code. I tried duplicating the issue with 3 different addresses/
   zip codes and no issue. Then we got a return customer today who had ordered 3
   time before. His info was saved in the DB. I logged in as him and tried to process
   and order and as soon as I submitted the order it was blocked immediately with“
   Postal Code Not Valid”. It’s not a CC processing error like “no zip match”.
 * I looked at the last plugin updates we’ve done and saw that the first complaint
   came on the same day that we updated the Square plugin. I then disabled Square
   and enabled payments by check. I then went and processed the same customers order
   and the order went through.
 * The issue is 100% with Square plugin but it only happens with certain ZIP codes.
   In this case it is: Tampa, FL 33624.
 *  Thread Starter [jedfirestone](https://wordpress.org/support/users/jedfirestone/)
 * (@jedfirestone)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11952907)
 * Same issue with us! It’s one of the last few updates, but this fix I mention 
   fixed it. It appeared to be certain zip codes, but in the end it was that certain
   system display the Zip input and certain don’t!
 * Make this change and force the reload and you’ll be a good to go.
 *  [erotic1](https://wordpress.org/support/users/erotic1/)
 * (@erotic1)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11953692)
 * I implemented your fix and it worked!
 * Thank you for solving the problem that Square has ignored…
 *  Thread Starter [jedfirestone](https://wordpress.org/support/users/jedfirestone/)
 * (@jedfirestone)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11953837)
 * Glad it helped!
 * It’s NOT Square that’s to blame. This is WooCommerce’s plugin. They need to implement
   the fix.
 * You may have to make it when you update again next time.
 *  [amyr123](https://wordpress.org/support/users/amyr123/)
 * (@amyr123)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11954124)
 * I am having failed payments (‘Square cannot process…’ or ‘please enter a valid
   email’.
 * Yes Woo created this disaster of a plugin. Square should hire someone to make
   a plugin that works. I used Elavon before and you uploaded it, put your acct 
   info in and it just worked. Every. Time.
 * Unfortunately I can’t use them anymore and have a business that can’t process
   cards from online purchases. Woocommerce support tickets posted and from WC: 
   crickets
 * I reverted to an earlier version of the plugin (not WC) but it didn’t help.
 * Does anyone have a suggestion?
 * Thank you
 *  [whitebox4](https://wordpress.org/support/users/whitebox4/)
 * (@whitebox4)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11964581)
 * thanks for the tip but i am having the same problem as everyone else with the
   zip code. otherwise everything else is fine. any eta when it may be fixed?
 *  [erotic1](https://wordpress.org/support/users/erotic1/)
 * (@erotic1)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11973334)
 * We are still having the same issue even after applying jedfirestone fix. We submitted
   support ticket with Woocommerce but no response yet.
 *  Thread Starter [jedfirestone](https://wordpress.org/support/users/jedfirestone/)
 * (@jedfirestone)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11975255)
 * Did you change both CSS files? And is it the zip code field you’re missing?
 * Try a second browser in the event you didn’t clear your cache. If you want to
   send me a link to your site I can see if it’s the same problem I had. It could
   be different.
 * I don’t know if you can private message but you can do that if you’d like.
 *  [erotic1](https://wordpress.org/support/users/erotic1/)
 * (@erotic1)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11975752)
 * Yes, I did make the changes that you stated but still the postal code field is
   missing from payment form. You can actually see it load for a split second and
   then it’s hidden. I realize that is what your fix was doing… stop it from hiding.
   W
 * Woocommerce support looked at the issue and verified this: “I found out and notice
   that the card postal code field is missing from the Square form. This is something
   that is required from Square itself, so it wouldn’t be wise to just remove it.
   It would likely cause card processing via Square to stop working and because 
   of this, the invalid postal code error showed up as the field was hidden and 
   there was no data.
 * I researched more and found out that this field was removed from the Square form
   as the field was using from the checkout billing address. Here’s the changelog
   for it: [https://github.com/woocommerce/woocommerce-square/blob/master/readme.txt#L108](https://github.com/woocommerce/woocommerce-square/blob/master/readme.txt#L108).
 * It seems like there might be a conflict (by the theme or a plugin on your website)
   that is causing this field to not use the postcode from the billing address. 
   Try switching to the Storefront theme, and see if the issue remains.”
 *  [madeincosmos](https://wordpress.org/support/users/madeincosmos/)
 * (@madeincosmos)
 * Automattic Happiness Engineer
 * [6 years, 9 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11981784)
 * Hi everyone,
 * Thank you for letting us know about this problem. We’ve seen some reports of 
   the “Postal Code Not Valid” error from one site, but are so far unable to reproduce
   it, which makes it hard to understand what could be the root cause or what can
   be done to fix it.
 * If you’re still seeing this error for certain accounts or zip codes, can you 
   please submit a support ticket here?
 * [https://woocommerce.com/my-account/create-a-ticket/](https://woocommerce.com/my-account/create-a-ticket/)
 * Please include the following information:
 * – System Status Report (you can find it under WooCommerce > Status in WP Admin);
   –
   customer billing address for which the problem happens; – customer account info,
   if it only happens for certain accounts.
 * Additionally, you can create an administrator account for [woologin@woocommerce.com](https://wordpress.org/support/topic/invalid-zip-code-2/woologin@woocommerce.com?output_format=md)
   so that we can check site settings and Square logs. This will help us understand
   what all these cases have in common and hopefully identify some patterns when
   exactly this problem occurs.
 * Thank you so much in advance!
 *  Thread Starter [jedfirestone](https://wordpress.org/support/users/jedfirestone/)
 * (@jedfirestone)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-11981975)
 * We couldn’t find that pattern. Some browsers would pass the zip code from the
   Woocommerce billing address to the hidden postal code field, some wouldn’t. Everyone
   we asked seemed to have a different system and browser. lol
 * Unhiding the postal code and forcing people to manually enter it fixed it.
 *  [mystyleplatform](https://wordpress.org/support/users/mystyleplatform/)
 * (@mystyleplatform)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-12014370)
 * Hello,
 * Here’s an alternative method to implement the same fix concept, that is, force-
   showing the postal code field in the square CC checkout “new card” option so 
   that the user can see whether or not it auto-filled the zip code from the billing
   section. This should override the plugin’s CSS since it does not use `!important`.
   Note that both Display and Visibility CSS properties were set to hide the field
   initially.
 * **Paste this right into your “Added CSS” menu** in the theme customizer for A
   QUICK fix.
 *     ```
       body .woocommerce #payment div.payment_method_square_credit_card .wc-square-credit-card-card-postal-code-parent.hidden {
           display: inline-block !important;
           visibility: visible !important;
       }
       ```
   
 * It is generally ill-advised to edit plugin files directly, as your changes will
   not persist beyond the next update, and making mistakes can cause bad breakage,
   so this is a better option.
 * **NOTE: This is a fix for the symptom, not the cause.** For some reason Javascript
   updates of the hidden postal code field (copying in from the billing address 
   field) seems to be failing, thus leaving that required square field empty. This
   needs to be fixed in WooCommerce Square Checkout plugin for a true fix to the
   root of the problem. It should be highest priority, since it breaks Payment during
   checkout, the worst possible place to have a bug.
 * **Fix Suggestions:**
    The root issue may be fixed if it’s just rewritten slightly
   to avoid jQuery conflicts, or javascript conflicts, etc, in case field event 
   handlers aren’t firing or js errors are preventing the field updates. Another
   fix option would be to run a timer in pure simple javascript without any jQuery
   etc that ensures the fields are synced constantly (twice a second or something
   would probably suffice). It’s again not a root cause fix, but, it would future-
   proof and fix checkout for various future potential conflicts, so that no matter
   what breaks the field update, it’s got a way to auto-fix it at runtime as a backup
   parachute. Just some thoughts.
 * In any case, hopefully WooCommerce Square plugin dev team puts out a patch update
   soon for this in the Square plugin, this directly negatively impacts sales and
   hurt one client’s conversion ratio noticeably. In the mean time… at least this
   takes the mystery out of why some people cannot check out!
    -  This reply was modified 6 years, 9 months ago by [mystyleplatform](https://wordpress.org/support/users/mystyleplatform/).
 *  [Elvira K.](https://wordpress.org/support/users/treibalen/)
 * (@treibalen)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-12072854)
 * Hi there [@mystyleplatform](https://wordpress.org/support/users/mystyleplatform/),
   [@jedfirestone](https://wordpress.org/support/users/jedfirestone/), [@erotic1](https://wordpress.org/support/users/erotic1/),
   and [@whitebox4](https://wordpress.org/support/users/whitebox4/),
 * I just wanted to chime in to let you know that the bug was already reported to
   our developers and the problematic CSS will be removed in the `2.0.6` version
   of the plugin.
 * After it’s removed, we’ll more thoroughly look at how we can autofill the postal
   code field more gracefully.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Invalid Zip Code’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-square/assets/icon-256x256.png?rev=3234354)
 * [WooCommerce Square](https://wordpress.org/plugins/woocommerce-square/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-square/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-square/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-square/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-square/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-square/reviews/)

## Tags

 * [Failed](https://wordpress.org/support/topic-tag/failed/)
 * [Postal Code](https://wordpress.org/support/topic-tag/postal-code/)
 * [zip code](https://wordpress.org/support/topic-tag/zip-code/)

 * 13 replies
 * 7 participants
 * Last reply from: [Elvira K.](https://wordpress.org/support/users/treibalen/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/invalid-zip-code-2/#post-12072854)
 * Status: resolved