woocommerce send shipping or billing address to stripe

WooCommerce: Send Shipping or Billing Address To Stripe

Some business locations and currencies require you to send a customers shipping or billing address to Stripe to process a successful transaction.

Due to a high number of disputes, all international card payments made to businesses based in India will go through 3D Secure (3DS) authentication which requires the customers address details sent in the transaction.

The official WooCommerce Stripe integration does not have any options to send shipping or billing address data to Stripe.

If you are receiving this error.

“As per Indian regulations, export transactions require a billing address/shipping address. More info here: https://stripe.com/docs/india-exports”

You need to have a way of sending customer billing or shipping address to Stripe.

Here’s a quick function that adds the customer’s shipping or billing address details to the Stripe transaction for processing.

https://gist.github.com/DeveloperWil/c56ce5d00ea0fed488cf284dd33aac8c

Where To Put The Code Snippet?

This code snippet should go in your active theme’s functions.php file.

Add it to the bottom of the file, before any closing ?> characters.

It’s always a good idea to take a backup of your functions.php file in case anything goes wrong – you can just copy the old code back in again.

Are You New To WooCommerce?

If you haven’t yet started to build an email list of your WooCommerce shop customers, now is the best time to get started.

Was this article helpful?
YesNo

4 thoughts on “WooCommerce: Send Shipping or Billing Address To Stripe”

  1. hi still i am gettting the same .

    i have put this code in function php and i guess the code is working though but i am failed to get the error since i have a little knowledge about programming

    1. Hey Paul
      There’s no hook. The code copies the billing or shipping address (whichever one you need) into the shipping address order array which Stripe uses to pull that info out from.

      Wil.

Comments are closed.