• Resolved avobelle

    (@avobelle)


    I would like to use the standard Stripe form for credit cards on my online shop. However, this form requires a postal code / zip code entry by default. The postal code is validated to be 5 characters (no more, no less). However, in Switzerland we only have 4 characters. Is there a way to get rid of the postal code in the Stripe form for credit cards?

    Thanks for your support!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @avobelle,

    Thank you for contacting us. On the checkout page, the Stripe form does not render a postal code field because the WooCommerce billing fields already have a postal code. Have you tested the plugin and observed something different? It’s specifically coded to not render a postal code if the billing postal code exists on the checkout page.

    The only pages where the postal code is rendered for the Stripe form are on the add payment method page or for subscriptions the change payment method page since WooCommerce doesn’t render a postal code field.

    The number of characters in the postal code field are dynamically determined based on the card’s issuing country via the BIN so it’s not hard coded to something like 4 or 5 characters only.

    Kind Regards,

    Thread Starter avobelle

    (@avobelle)

    Oh, so the card number might be the reason here.

    I am using the Stripe testing card 4242 4242 4242 4242 and it is asking me for a ZIP code: https://ibb.co/9gPHPSL

    It is then asking for a 5-digit ZIP code. So would that be a different digit-restriction if I use another card number?

    Regarding the existance of a zip-code: I have removed the zip-code from the form, as it is a digital product. So no need to ask for the zip code.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @avobelle,

    Yes, if you were to use a card that has a BIN issuing country of Switzerland, then the postal code field would accept a 4 digit postal code.

    Kind Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Postal Code From Stripe Form’ is closed to new replies.