#hieutrung203
1 messages · Page 1 of 1 (latest)
hello! I assume you're trying to create a direct charge? If that's the case, you should use the StripeAccount header to make those requests : https://stripe.com/docs/connect/authentication
This guide might be helpful too : https://stripe.com/docs/connect/direct-charges
I use the StripeAccount header to make those request, but its return error like the picture
but i change some parameter to payment for customer in connect account, and it's return an error " No such customer: 'cus_PRFL2hEtk6fUNo'"; - where is this error from?
here is the code
based off the latest screenshot that you're sharing, i don't see you using the StripeAccount header?
i have used right here
that's your frontend
you need to use it server-side also if you're trying to make requests on behalf of the connected account
great! glad to have been able to help!