Support » Plugin: WooCommerce Stripe Payment Gateway » Add street check and zip code check to checkout

  • Resolved lofleouf

    (@lofleouf)


    Hello everyone,

    I’m using the latest version of WooCommerce Stripe Payment Gateway. I want to add street check and zip code check to my checkout form to limit fraudulent payment.

    Does anyone have an idea on how to do that?
    Thanks a lot!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey lofleouf,

    I’d recommend looking into getting an address validation plugin. We offer a premium plugin that can do that and there looks to be several free options here on wordpress.org as well. Though, one thing to keep in mind that most address validation plugins require accounts/API keys from the companies actually doing the validations and that generally has a fee associated to it.

    Hope that helps!

    Thread Starter lofleouf

    (@lofleouf)

    Thanks for the reply Shaun.

    Unfortunately, I need the Stripe checkout form (not the form linked to woocommerce) to contain the zip code so Stripe can verify the credit card used.

    Thanks anayway

    Plugin Author royho

    (@royho)

    @lofleouf,

    Yes you can do that by putting the following into your child theme’s functions.php file add_filter( 'wc_stripe_checkout_require_billing_address', '__return_true' );

    However note that this is not enabled by default for a reason as it forces a bad user experience. By enabling this, the user has to fill out the address twice, once on WC and once on the popup.

    Thread Starter lofleouf

    (@lofleouf)

    That’s great. Worked like a charm.

    Just one quick question:
    The billing address is one thing but what about the zip-code of the credit card used?
    Is there a way to request this in the stripe checkout form?

    Thanks a lot!

    Plugin Author royho

    (@royho)

    That is what billing address is. The billing address of the card used.

    Thread Starter lofleouf

    (@lofleouf)

    Got it thanks for the clarification!

    I would like to jump on this discussion:

    If the inline integration of Stripe is used, does it automatically pass the billing details (Zip, Street 1) to Stripe for the AVS Check? I checked the documentation, and it says, it should. But in my case, everything works 100% fine (all my systems are 100% up to date and not customized) but it doesn’t pass these details to Stripe.

    Thanks a lot for the clarification!

    Hi @cognac-expert, yes, the inline form for WooCommerce will automatically pass billing address details to Stripe, once you’re running the code to enable wc_stripe_checkout_require_billing_address .

    The address fields will be slightly hidden in Stripe, but you can find them in two places on the Stripe website:

    1. The Events section of Stripe.

    2. Although Stripe doesn’t show the addresses on the Payments page, it does show the billing addresses if you export your payments — click the Export button on the Payments page.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add street check and zip code check to checkout’ is closed to new replies.