#Leck
1 messages · Page 1 of 1 (latest)
Hi there,
Yes that's expected, For Connect webhooks, it’s important to note that while only test webhooks will be sent to your development webhook URLs, both live and test webhooks will be sent to your production webhook URLs. For this reason, we recommend you check the livemode value when receiving an event webhook to know what action, if any, should be taken.
https://stripe.com/docs/connect/webhooks#connect-webhooks:~:text=For Connect webhooks,should be taken.
Thank you for the answer, I will re-read the docs and make sure I don't miss anything. Since we are already here, does the same thing apply to making request on behalf of connected accounts? Only my live api key is needed both for test and live?
Only my live api key is needed both for test and live?
You can do request on behalf of your Live Connect Account using the live key, and do request on behalf of your Test Connect Account using the test key
You can't use the same key for both, because the Conencted Account are resources related to your env, the live mode Connected Account are available only in live mode. For test mode, you have other Account Ids
Let me specify the case even further, because its not actually a test mode connected account and not my test env, but theirs.
When someone connects (or in my case, install my app in the Marketplace) they are connected to me in my account's Live mode. Is that correct?
Given that, the case I meant is when they install my app in the marketplace and they create a customer in their account's Test mode.
I receive an event in my live webhook but would still need my account's test mode key to access that customer. Is that right?
When someone connects (or in my case, install my app in the Marketplace) they are connected to me in my account's Live mode. Is that correct?
It should so yeah if you are using the live mode API key
Given that, the case I meant is when they install my app in the marketplace and they create a customer in their account's Test mode.
When you says Test Mode here, in the marketplace integration, you are still using the live mode API key or you switched to the Test mode Key ?
That's what I am trying to figure out actually.
If you are using the Live mode key in the marketplace, then the created customer will be in the Livemode and if you use the Test key, then the created customer will be in the Test mode
It's a "production" app that is already going to the marketplace. So it's no me experimenting with test mode connected accounts anymore.
It's a "production" app that is already going to the marketplace.
You keep using the Live mode API key then
Even if the accounts that installed my app creates a customer in test mode, only my live key is needed then
If the customer created using the Test mode key then you'll need to test key, and if the live key is used for creating the customer then the live key is needed
You can't create customer in test mode using the live key
But Im not creating anything
Im only accessing it
the connected account is the one that created it
The connected Account was created in your Test or Live Mode ? if it was created in the live mode, then the live mode is needed to fetch it's customer, otherwise you'll need to test mode one
Im assuming when they install the app in the marketplace, it gets created in my Live mode. But then they can create customers both in their account live and test mode, and I receive the events for both cases. Now, after they create a customer I want to retrieve the customer information (in both live and test mode).e
You can use the Live mode key, as the Connected Account is created using it.
You're welcome!