#brunei_connect-missing-object

1 messages ยท Page 1 of 1 (latest)

frank isleBOT
#

๐Ÿ‘‹ 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.

scarlet pivot
#

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)

upper zealot
#

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?

scarlet pivot
upper zealot
#

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.

scarlet pivot
#

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

upper zealot
#

Let's ignore Postman for now

#

Can you share the request ID for the request to retrieve the Intent that is successful?

scarlet pivot
#

How can I get the request ID, please?

upper zealot
scarlet pivot
#

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

upper zealot
#

Okay it is the account confusion

#

This Payment Intent was created on acct_1OWMJV4RfNcOldh4 but you are trying to access it on acct_1O2EEkG9OPFEDv4k

scarlet pivot
#

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

upper zealot
#

You created the PI using the Stripe Account header. This creates the object directly on the Connected Account

#

That is the only way you can use your Platform Publishable Key and still confirm a Payment Intent that exists on the Connected Account

scarlet pivot
#

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.

upper zealot
#

No worries! I've made the same mistake in my Android integrations.

scarlet pivot
#

I'm sure that it will work now. Thank you again!

upper zealot
#

Happy to help ๐Ÿ™‚