#gustavonicot-client_secret
1 messages · Page 1 of 1 (latest)
Hi there, this error happens when an incorrect client_secret is passed to the flutter app. Can you check how is this client_secrect being passed to the flutter app?
I have a backend endpoint and the publishable key appear to be correct
I can send you the info if it helps
Sure, can you send me the payment intent ID?
It is OK, I just need the payment intent ID
Please give me a few mins to investigate
thanks!
so you are performing a direct charge for your connected account?
Did you specify the account ID in the Stripe-Account header?
I have specified it in the customer creation, in the ephemeral key and the payment intent
am i missing something?
we also need to include the account ID in the client side (flutter) as well
Complete reference documentation for the Stripe JavaScript SDK.
This is how to pass the account ID in Stripe JS, do you have something similar in your flutter code?
You might need to set the account ID via https://github.com/flutter-stripe/flutter_stripe/blob/main/packages/stripe/lib/src/stripe.dart#L39
Cool, I am happy the problem is resolved 🙂