#sre_code
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/1343574734490828868
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐
I think you are looking for this guide:
https://docs.stripe.com/payments/build-a-two-step-confirmation
Collect PaymentMethod before creating and Intent.
Well, when using the confirmation token and updating the stripe instance to a connect account it says that the confirmation token was not found, Then, the second one is what I tried, but the scenario stated is just on one account, it doesn't involve a platform and connected accounts
Well, when using the confirmation token and updating the stripe instance to a connect account it says that the confirmation token was not found,
There must be a missing Stripe Connect Auth header at some point
do you have a sample request Id ?
req_1LvCIqsYFzU6c6
Ok, but in this scenario, I stated that at the time I initialize the stripe instance = loadStripe(pk.......) I don't have the connected account ID since I only get that after I call the backend to create the PI
Then you are using keys of two different Accounts (the publishable of one account and the secret of another)
Well, I need the PI on a connected account but I also need to use the pb key from the platform account, I don't have any information when initializing stripe so I would prefer if there's a way to send the account id when confirming or the elements after it renders
Hi, taking over as my teammate needs to step away. Let me catch up.
Yeah, what you're looking for is not possible with your current integration. Your customers would need to select either the Platform or the Connected Account before Payment Element is rendered. You would want to build this UI, then use the appropriate Payment Element rendring for the selected account.
This would be changing the whole customer experience of a booking flow that's already in place, are we sure nothing else can be done?
With your current integration, you're going to see these mismatched/ not found errors as you're creating the PaymentIntent on one account, and collecting the payment method details on another. As my teammate shared, if you created the PaymentIntent on the Connected account, you need to use the Stripe Account Header.
Ok, can the elements be updated with the stripe account header or attached to the confirm payment request? Is that not something that can be built?
Actually I tried to update the elements with the on behalf of header and passing the account id but either way I get the not found error