#teklets - Connect

1 messages ยท Page 1 of 1 (latest)

raven zenith
#

Hi ๐Ÿ‘‹

#

What account do you want to toggle?

upbeat musk
#

the connected account

#

so right now we basically have our customers connect twice to stripe (one with the test key and one with the prod key)

#

seemed like there'd be a better exp we could do by connecting a prod account then toggling from our stripe services? but that throws a wrong env error from the stripe util funcs

raven zenith
#

Hi ๐Ÿ‘‹ sorry this got lost in the chatter. I'm not aware of any simple method for toggling between the account settings. The environments are kept very separate to allow for more rigorous testing but it can make things like this more cumbersome.

upbeat musk
#

no worries

#

so if a connected customer connects via prod mode, is there no way to also create a test mode automatically via connect?

jovial moss
#

๐Ÿ‘‹ stepping in here as Snufkin needed to step away

#

If a Connected account is connected in prod then you also have testmode access to that account.

upbeat musk
#

ok SWEET

#

how exactly do i do that? lol

jovial moss
#

How do you connect it in prod?

upbeat musk
#

so we generate the connect link

#

then just have them passed through the process

jovial moss
#

What type of Connected Accounts are you using?

upbeat musk
#

rn for test mode, we do the same thing, just with the test key

#

standard

jovial moss
#

Mostly you create the account in livemode and send them a livemode account link

#

That will connect them in Prod and you will also have testmode access for that Connected account

upbeat musk
#

Gotcha, is there a good way to get testmode access for the connected account?

#

do we pass a field like live_mode to any stripe func like creating a product?

jovial moss
#

This is all determined by the keys you use

#

If you want to access a Connected Account in testmode then you use your test API key

#

And pass the Stripe Account header

upbeat musk
#

oh interesting

#

so link to prod stripe mode account

#

then anytime we want to use a stripe func with a test mode for the end customer's test account, we just use our test api key on top of their account id as a header?

jovial moss
#

Yep

upbeat musk
#

sweet thanks, bismark. i'll try this out over the weekend

jovial moss
#

๐Ÿ‘

upbeat musk
#

btw any specific docs/pages i can review about this?

jovial moss
#

Hrmm not really. It is just understood that if you link an account in Prod then you can also perform test mode actions on the account