#Feetscha
1 messages ยท Page 1 of 1 (latest)
Hi there can you copy that payment intent id here as text? pi_123abc
After trying that paymentIntent, I'll get the following error:
because the paymentSheet throws that error: secret format does not match expected client secret formatting.
Oh now I got it haha. here it is: pi_3MX5Od2YJZ2lDWb719rvgM3H
Have you tried logging your client_secret value to ensure it matches what you expect for the payment intent?
What do you mean?
oh like the first part of the client secret is showing the matching pi_123 id?
Can you confirm the full string matches the client_secret you see if you retrieve the payment intent using your secret key? ie, it has not been truncated in any way?
its just in test mode
Looking at your request logs, you seem to be creating this using the direct charge pattern: https://dashboard.stripe.com/test/logs/req_75jxJSFCAH1iKJ
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
(still not good to post secrets ๐ )
When you initialize the RN SDK, are you making sure you do so with the same connected account context?
ie, it should use your platform PK + the optional stripeAccount during initialization
Are you setting stripeAccountId on the Provider to match the connected account for this payment intent?
<StripeProvider
publishableKey="pk_test_123_platform"
stripeAccountId="acct_1..4X_connected"
>
I do not. my provider looks like that:
Ok then you need to add that, since you're using direct charges
ah makes sense. I'll try that and gonna let you know if it worked or not. thanks alot
alright thank you works as expected :))
Great! You're welcome ๐
have a nice day ๐