#Duplicated
1 messages ยท Page 1 of 1 (latest)
When your connected account is connected to your platform account via both Test and Live mode: the Live events are sent to the platform's Live Connect webhook endpoint and the Test events are sent to both the Live and the Test Connect webhook endpoints on the platform.
I think this is likely your case. When you say
I'm now receiving two webhooks of the same event id, both with livemode: false for some reason (including the webhook that gets published in live mode).
It sounds like the Test events mentioned above.
Yep, this is exactly the scenario.
Or more clearly
As far as I know, the connect account in test mode was created independently though, so there shouldn't be a live mode counterpart for it.
Normally, when you create a connect account in live mode, you'd also get a test mode version created for you automatically, correct?
Possibly per my memory, but if you can provide that account id, my colleague will be able to take a look cc @gray peak
@obsidian sonnet should I pm @gray peak the id directly? Or can I just share it here?
Also, are you referring to the connect account, or the parent Stripe account id itself?
The connected account id is enough. Sharing here is safe. River will be here soon
๐ Taking over this thread from orakaro
Thanks again @obsidian sonnet
@gray peak connect account id is acct_1HnxlDJjv9PMR4aC
acct_1HnxlDJjv9PMR4aC is connected in both test and live mode
Is it possible to unlink just this connect account from live mode?
It was created solely for internal testing, but I'm not sure if the issue stems from the fact that I'm reusing the same webhook endpoint across both live and test modes or not.
I'm afraid that's not possible to disconnect from live mode only
I mean, something like this
One way I can think of is to create another new test mode only connected account, so that you only receive test-mode events
Can you help walking me through the steps required to create this new test mode only connected account? Or if you have a KB article on this, that'd be fine too
If it's a Standard connect account, you can refer to the steps here using Test Mode API key: https://stripe.com/docs/connect/standard-accounts
If it's a Standard connect account
Is there a way to check this via API call? I'm not sure how the previous engineer had set these connect accounts up for the company ๐ข
You can use Account Retrieval API on the connected account ID: https://stripe.com/docs/api/accounts/retrieve
It'll return the type in the response: https://stripe.com/docs/api/accounts/object#account_object-type
I see now. Thank you very much @gray peak
No problem! You can also create other types of connected account: https://stripe.com/docs/connect/accounts
Most importantly, using test mode API key to create those connected accounts.
Gotcha. Thank you again ๐บ