#thefirstharpy
1 messages · Page 1 of 1 (latest)
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.
- thefirstharpy, 13 minutes ago, 8 messages
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?
When a customer registers on the platform the customer is created on stripe as well
const customer = await getStripeCustomer(stripeID);
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
By using the Stripe Account Header (see: https://stripe.com/docs/connect/authentication) like you do in that Checkout Session creation request
They'll be the customers of the said connected account
Just like the charges
So, the customers that are created on the platform when they register shouldn't happen now
Correct.
Instead they'll be added to the connected account
Yep
Thanks again
Sure
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
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
Would i be using the platform's api key or the connected account's?
Or is the syntax wrong
Yes you use platform key
Here stripe is initialize using the platform's key
Sending..
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
I can see the account on the stripe dashboard
Then I'd double check the API key you are using to ensure it is your platform key
Yesterday i onboarded the account from the dashboard
You can also share the Connected Account ID with me and I can take a look
Can we connect tomorrow?
Yep we will be here