#thefirstharpy

1 messages · Page 1 of 1 (latest)

wild tideBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

iron plover
#

Hello

#

Does the Customer exist on your Connected Account?

#

Or your platform?

#

Yep and how do you create that customer.id?

#

Or where do you retrieve it from?

gusty juniper
#

When a customer registers on the platform the customer is created on stripe as well

#

const customer = await getStripeCustomer(stripeID);

iron plover
#

Yep that customer is created on your platform

#

But you are trying to charge on your Connected Account

#

So you need to create the Customer on the Connected Account

gusty juniper
#

Oh so, the customers wont be added to the platform

iron plover
#

Not with Direct Charges, no.

#

The Customers are on the Connected Account

gusty juniper
#

They'll be the customers of the said connected account

iron plover
#

Just like the charges

gusty juniper
#

So, the customers that are created on the platform when they register shouldn't happen now

iron plover
#

Correct.

gusty juniper
#

Instead they'll be added to the connected account

iron plover
#

Yep

gusty juniper
#

Thanks again

iron plover
#

Sure

gusty juniper
#

Is there a way to use the get_customer_by_id for the connected account

#

Like would it be the same api, with the header passed as param

iron plover
#

Yep, the doc I shared above shows you how you can make any API request on your Connected Account

#

You pass stripeAccount as an options param

#

All of our APIs support this

gusty juniper
#

Would i be using the platform's api key or the connected account's?

#

Or is the syntax wrong

iron plover
#

Yes you use platform key

gusty juniper
#

Here stripe is initialize using the platform's key

iron plover
#

That looks fine.

#

Are you seeing an error?

gusty juniper
#

Sending..

iron plover
#

Yep okay so it is working fine

#

The issue is that your Connected Account is not actually connected to that platform

#

So I'd check on the account ID

#

And ensure you are testing with the correct Connected Acccount / Platform combo

gusty juniper
#

I can see the account on the stripe dashboard

iron plover
#

Then I'd double check the API key you are using to ensure it is your platform key

gusty juniper
#

Yesterday i onboarded the account from the dashboard

iron plover
#

You can also share the Connected Account ID with me and I can take a look

gusty juniper
#

Can we connect tomorrow?

iron plover
#

Yep we will be here