Migrate Stripe account to another #1063
-
Hi. I have Stripe integrated via pay gem. I have been using a Stripe account and now we are migrating to a different Stripe account for some xyz reason. How do i do it smoothly? I want users to cancel subscriptions in their previous account and subscribe again (yeah i know bad customer experience and might result in a lot of churn) I want to know if anyone has done this in the past. Need to know what options do I have. Any help or guidance would be great. I saw some Stripe FAQs related this but they don't seem to be sufficient. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I'm not sure if Pay can work with multiple Stripe accounts in the same app 🤔 |
Beta Was this translation helpful? Give feedback.
-
You might be able to by overriding the Stripe's Ruby gem now allows you to pass the API key in the second set of arguments, which you could use for the old account's API key. That allows you to override the default API key that's set globally. See the Stripe docs: https://docs.stripe.com/api/authentication |
Beta Was this translation helpful? Give feedback.
You might be able to by overriding the
stripe_options
method in Pay::Stripe::Subscription.https://github.com/pay-rails/pay/blob/main/app/models/pay/stripe/subscription.rb#L377-L379
Stripe's Ruby gem now allows you to pass the API key in the second set of arguments, which you could use for the old account's API key. That allows you to override the default API key that's set globally.
See the Stripe docs: https://docs.stripe.com/api/authentication