#brunei_connect-missing-object
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1290344129674481837
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- brunei_api, 28 minutes ago, 5 messages
More details:
Payment intent is correct, because when I use Postman to get its data, it is returned correctly (using the secret key from "main" account).
The payment intent client secret is correct, too. (I am sending the correct client secret to initPaymentSheet method).
Example of payment intent id that can't be found using the "main" account publishable key:
pi_3Q4mAE4RfNcOldh400GwMybd (from connected account:
acct_1OWMJV4RfNcOldh4)
Hello! I'm trying to use manual credit card entry in a React Native app
Let's start here
What UI are you trying to use?
Sure! I'm following these docs:
Okay and it sounds like you are familiar with the error message you received. This mostly happens in Connect integrartions where the object (Payment Intent) is created on a different account that then one trying to use it.
Yes.. but what it is making me confused is why, when using Postman, I can retrieve the payment intent?
And when I use the initPaymentSheet function it is returning that the payment intent id is non existent
Let's ignore Postman for now
Can you share the request ID for the request to retrieve the Intent that is successful?
How can I get the request ID, please?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Ok. Thank you.
I don't have a successfull response, only errors...
I think that this is the one that initPaymentSheet tried to request:
req_dlP2xJnlX7tfP4
Okay it is the account confusion
This Payment Intent was created on acct_1OWMJV4RfNcOldh4 but you are trying to access it on acct_1O2EEkG9OPFEDv4k
Hm..
But acct_1O2EEkG9OPFEDv4k is the "main" account and acct_1OWMJV4RfNcOldh4 is the connected account.
Can't I create a payment intent for the connected account using the main account publishable key?
If I can't, how can I manage the application fee for the payment intent?
I tried to think like terminal integration, where I only use the "main" account publishable/secret key, always, when starting the Stripe API lib
You created the PI using the Stripe Account header. This creates the object directly on the Connected Account
You will need to initialized the Stripe RN SDK using the Connect Account ID as well
https://stripe.dev/stripe-react-native/api-reference/interfaces/InitStripeParams.html
The stripeAccountId parameter in the initStripeParams
That is the only way you can use your Platform Publishable Key and still confirm a Payment Intent that exists on the Connected Account
Wow... I didn't look for this parameter in StripeProvider.
That was a silly mistake..
Thank you so much for your time, Snufkin!
I'll try and, if it does not works, I'll start a new thread.
No worries! I've made the same mistake in my Android integrations.
I'm sure that it will work now. Thank you again!
Happy to help ๐