#heshiebee

1 messages · Page 1 of 1 (latest)

steady galleonBOT
fickle dragon
#

This is the Stripe ruby gem

daring elk
#

What do you mean swap out? Are you creating a plugin?

#

Where are you seeing deprecation information?

fickle dragon
#

Change the api_key per the customer making the request. Making requests on behalf of the customers stripe account.

daring elk
#

Are you a connect platform?

fickle dragon
#

Both. We were just connect until now and are trying to refactor our integration so users can bring their own stripe

daring elk
#

You'll need to do it on init or override on each request as shown (perhaps using some request options)

fickle dragon
#

Our connect setup works well. Just worried if I keep swapping the api_key it might leak between requests

#

From connect account with header to non-connect request with just the API key

daring elk
#

You shouldn't be swapping api keys between requests, no, you should have those accounts connect

fickle dragon
#

That's not an option for us.

#

Some customers have years of sales history they don't want to lose

daring elk
#

If you really need to override on a request level the example showing that in the request options is likely to be what you want

#

You can connect to their existing account in that case

fickle dragon
#

Ok, and to I have to clear out the api_key on the client or will it take precedence over that key?

daring elk
daring elk
fickle dragon
#

Great

#

Thx!

#

Very helpful

#

"OAuth is not recommended for new Connect platforms. We recommend using Connect Onboarding for Standard accounts instead."

#

From the docs ☝️

brisk creek
daring elk
#

This is better than juggling API keys

#

Which you really really should not do

fickle dragon
#

Will it be deprecated shortly?

daring elk
#

No, there would be communications if that were planned