#Feetscha

1 messages ยท Page 1 of 1 (latest)

cloud hingeBOT
covert spruce
#

Hi there can you copy that payment intent id here as text? pi_123abc

fallen wing
#

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

covert spruce
#

Have you tried logging your client_secret value to ensure it matches what you expect for the payment intent?

fallen wing
#

yes they do match

#

except the _secret part at the end

covert spruce
#

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?

fallen wing
#

its just in test mode

covert spruce
#

(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"
    >
fallen wing
#

I do not. my provider looks like that:

covert spruce
#

Ok then you need to add that, since you're using direct charges

fallen wing
#

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 :))

covert spruce
#

Great! You're welcome ๐Ÿ™‚

fallen wing
#

have a nice day ๐Ÿ™‚