#ammu-connect-reactnative
1 messages ยท Page 1 of 1 (latest)
๐ @ocean bluff can you share the exact PaymentIntent id for me to have a look? My guess is that you are creating the PaymentIntent on the wrong account
ammu-connect-reactnative
this is my payment itent id.. pi_3OAcILSBmcNZkc9Q1qafaJS1
In the dashboard of that account , I could see the payment intent. So i guess payment intent is getting created correctly. But in react native app, it is throwing no such payment intent error.
Okay so you are a Connect platform. You are using Direct Charges https://stripe.com/docs/connect/direct-charges which means you create the PaymentIntent on one of your connected accounts.
Client-side in React NAtive you have to properly initialize the SDK with the right account: https://stripe.com/docs/connect/authentication?client=create-client-react-native#adding-the-connected-account-id-to-a-client-side-application
I am in test mode and wrapping my react native app with stripe provider like this..<StripeProvider publishableKey={PAYMENT_CREDENTIALS.STRIPE_PUBLISHABLE_KEY} stripeAccountId='acct_1O9uNbSDmkHU41aw'></StripeProvider>
yeah you ahve the wrong account id there
the PaymentIntent you shared was on a different connected Stripe account
In dashboard I was able to see that payment intent mapped to that account id.https://dashboard.stripe.com/test/connect/accounts/acct_1OACfISBmcNZkc9Q/payments/pi_3OAcILSBmcNZkc9Q1qafaJS1.
Hello! I'm taking over and catching up...
In the screenshot you shared look at the acct_ ID in the URL. It doesn't match the account ID in the code you shared earlier.
thanks Rubeus, its my fault. Problem got solved
Glad to hear it's working! ๐