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.

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?

Leave a Comment

Your email address will not be published. Required fields are marked *

Keep In Touch With My Weekly Blog Email

A once-per-week daily digest of my posts from the week. No sales, no spam and I will not share your details with anyone else.


Wil is a dad, WordPress consultant, WordPress developer, business coach and mentor. He co-organizes the WordPress Sydney meetup group and has been on the organising committee for WordCamp Sydney since 2014. He speaks at many special events and contributes to the WordPress open source project. His likes are chillies, craft beer and electrogravitics.

Leave a Comment

Your email address will not be published. Required fields are marked *