#cristiancalara_code

1 messages ¡ Page 1 of 1 (latest)

spare marlinBOT
#

👋 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/1324313186681356308

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

bold sequoia
#

How you are creating the SetupIntent for a platform and then handle its action using the Connected Account ?

#

You'll get a resource not found error if you do so.

rose lily
#

So for the setup intent, i create it for the platform, and handle the actions on the platform to save it as a payment method for the customer. Then I use this payment method from the platform, clone it on the connected account, and create a payment intent with this cloned payment method. For this payment intent, I need to handle the next action for the connected account

bold sequoia
#

Thank for the additional details. In that case you should create another instance of stripejs for the connected Account.

rose lily
#

Okay I see. You'd suggest creating this second instance only if I actually need to handleNextAction for the payment intent? Asking as I'm not 100% sure how the fraud detection thing works (because of which Stripe recommends loading the stripe js across all pages not only on checkout)? Or you'd suggest creating both instances at once "globally"?

bold sequoia
#

Yes you shouldn't create create a stripejs instance on each checkout page, you can keep tracking of multiple global instances yes.

rose lily
#

Okay thanks for the quick help

bold sequoia
#

Welcome!