Skip to content

Instantly share code, notes, and snippets.

View codegeek1001's full-sized avatar

Yash Chandra codegeek1001

  • United States
View GitHub Profile
Purpose: Migrating customer from one stripe account to another with credit card details. For sake of description, we will call the 2 accounts "From_Stripe" and "To_Stripe". So we are going to take customer from the "From_Stripe" account and import it into "To_Stripe" account.
You need to first connect the 2 stripe accounts.
Step 1: To connect the 2 accounts, Create a "Connect App" first in the "From_Stripe" account. Once created, it will have the client id which is 'ca_xxxxx'
Step 2: Make sure you now login to "To_Stripe" account in your browser. Then run the following URL
https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_xxxxxx&scope=read_write
Step 3: You will get the ACCESS_TOKEN returned to you when you run the above url. Note this ACCESS_TOKEN down. it will be something like 'sk_live_xxxxxxxx' just like a secret key