Skip to content

Migrate Stripe account to another #1063

Answered by excid3
inventionsbyhamid asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@deanpcmad
Comment options

@excid3
Comment options

@inventionsbyhamid
Comment options

@excid3
Comment options

@inventionsbyhamid
Comment options

Answer selected by excid3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants