#Charmon
1 messages · Page 1 of 1 (latest)
I can find one in stripe dashboard logs?
Yes or you should see one returned with the error in your server logs
Are you a platform/using Connect?
Yes, I am using connect
Gotcha, the issue here is almost always that you are trying to access a Customer on the Connected Account but not using the Stripe Account Header: https://stripe.com/docs/connect/authentication
i got the req id
Okay please share here
req_2xJGsfxWsIJFm8
I am using the header:
const session = await stripe.checkout.sessions.create(
{
payment_method_types: ['card'],
// billing_address_collection: 'required',
customer,
line_items: [
{
price: price.id,
quantity
}
],
mode: 'subscription',
allow_promotion_codes: true,
subscription_data: {
application_fee_percent: 10,
metadata
},
success_url: `${getURL()}/account`,
cancel_url: `${getURL()}/`
},
{
stripeAccount: price.stripe_account_id!
}
);
Oh okay well then the Customer ID is a Customer on the wrong account (likely your platform)
Yep
yes the customer is on my platform correct.
Just looked and the Customer is on your platform
Right so this won't work
The Customer has to be in the Connected Account
Can this be done, by having customer on my platform only? I'm saying this, because there would be multiple connected accounts on my project (including my own), so it would be very difficult to manage multiple customers associated with single user
No that's not possible
For example 1 patreon customer, can subscribe to 100 patreon creators creating only 1 customer object
If you create a Checkout Session on your Connected Account then the Customer has to be on that Connected Account
What type of Connected Accounts are you using?
standard
Gotcha.
Then yeah each time you are going to create a Direct Charge you are going to need to create the Customer on the Connected Account as well
There is really no other way around it.
You likely want to list Customers on that Account first as well to check if you already created the Customer on that Account
And then re-use that Customer if so.
so does that mean that the products and prices will have to be under connected account as well?
Yes
I don't mind using different type of, charge as long as I know that stripe connected accounts are responsible for their own fees and refunds, is that possible with other charges?
No that's only possible with Direct Charges
With Destination Charges you would be responsible as the platform
And we do not recommend Destination + Standard
Why are express accounts recommended for destination charges?
Because you as the platform control everything here
So you don't want your Connected Accounts to have the ability to issue refunds for instance
As that would only return funds to your platform, not to the actual customer
Ok, so platforms like patreon tend to use express?
Yeah most likely. But really just depends on what control the platform wants
It will certainly make it easier on your integration here in terms of controlling everything (Customers/Products/Prices) from your platform.
I want to use express, but the fact that platform would be liable for any type of fraud is off putting
Yep there are certainly trade offs
can stripe do anything to prevent it?
To prevent fraud? Or liability?
fraud