Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1167446

    Hello,

    I’ve noticed an odd issue with our Square for WooCommerce payment gateway. When toggling to use a credit card, an asterisk appears within the payment gateway settings. Upon inspecting the element, it appears to be related to “Postal Code” being a field for online purchases.

    On the checkout page, the sale still does go through with just Card Number, Expiration and CSC. However, on the My Account page, users are unable to add new payment methods and receive the following error: Status code VERIFY_AVS_FAILURE: Postal code check failed.

    I attached some screenshots for reference. Also, I did speak to WooCommerce about this issue as well as Square, but both resulted in them concluding it’s a theme issue as the problem is not present with the storefront theme active.

  • No asterisk prior to toggling for new card
  • Asterisk appears on checkout form in gateway description
  • Add Payment Method as well” />
  • Failed to add payment method - Postal Code Check Failed
  • My Account Inspector Screenshot
  • Checkout Inspector Screenshot
#1168449

Hey npmcgrew,
Sorry for the late reply and thanks for the login and screenshots. It looks like the issue is that the field uses the class “hidden” and we have css which hides the class, which we happen to also use.
Anyways, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

#wc-square-credit-card-credit-card-form .wc-square-credit-card-card-postal-code-parent.wc-square-credit-card-hosted-field-parent.hidden {
	position: relative !important; 
    visibility: visible !important; 
}

Then clear your browser cache and any cache plugin, and check.

Best regards,
Mike

#1170825

Awesome, thank you for the help! I hope you had a great holiday and well-deserved time off :)

#1170898

Hi,
Thank you, I hope you also had a nice holiday :)
Is there anything else we can assist with on this issue, or shall we close this then?

Best regards,
Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.