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.
4 Responses
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
What error are you getting? I’ve tested the code and it works from here using an Indian VPS source.
Hi, thanks for sharing this. What action hook or filter are you using to call this function?
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.