#Leck

1 messages · Page 1 of 1 (latest)

steel lionBOT
lean hollow
ocean gorge
#

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?

lean hollow
#

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

ocean gorge
#

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?

lean hollow
#

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 ?

ocean gorge
#

That's what I am trying to figure out actually.

lean hollow
#

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

ocean gorge
#

It's a "production" app that is already going to the marketplace. So it's no me experimenting with test mode connected accounts anymore.

lean hollow
#

It's a "production" app that is already going to the marketplace.
You keep using the Live mode API key then

ocean gorge
#

Even if the accounts that installed my app creates a customer in test mode, only my live key is needed then

lean hollow
#

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

ocean gorge
#

But Im not creating anything

#

Im only accessing it

#

the connected account is the one that created it

lean hollow
#

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

ocean gorge
#

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

lean hollow
#

You can use the Live mode key, as the Connected Account is created using it.

ocean gorge
#

got it

#

Thank you so much for the answers and the patience

lean hollow
#

You're welcome!