#teklets - Connect
1 messages ยท Page 1 of 1 (latest)
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
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.
no worries
so if a connected customer connects via prod mode, is there no way to also create a test mode automatically via connect?
๐ 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.
How do you connect it in prod?
What type of Connected Accounts are you using?
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
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?
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
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?
Yep
sweet thanks, bismark. i'll try this out over the weekend
๐
btw any specific docs/pages i can review about this?
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