#benkass
1 messages ยท Page 1 of 1 (latest)
Hello! What's your question?
I'm working on implementing it right now. This is on react native.
Until now, we would:
- create/retreive customer
- create a payment intent
- presentPaymentSheet - https://stripe.dev/stripe-react-native/api-reference/index.html#presentPaymentSheet
- Once the customer would click Pay, we run
stripe.paymentIntents.retrieve(paymentIntentId);and I believe that completed the payment, right?
if I'm right, then I believe I now need to:
- create/retreive customer
- create a payment intent
- presentPaymentSheet - https://stripe.dev/stripe-react-native/api-reference/index.html#presentPaymentSheet
Once the customer would click Pay we will create a payment method, clone it on the connected account and use the clones PM to create a payment intent on the connected account and retrieve it?
Did I get it right?
Almost - my guess is that instead of #2 (create a paymetn intent) you really want to create a setup intent
If you create a paymetn intent that means the platform will be accepting payment (which is fine if that's what you want, but from before it sounded like you just wanted the connected account to get payment)
Yes, you are correct, I want the connected account to accept the payment. However, this is different than what's in the article/video you sent me
and I believe he's talking about having the connected account accept the payment?
You're talking about this link right? https://dev.to/stripe/single-slider-direct-charges-on-multiple-accounts-with-cloning-ic5
yes
In that guide they're creating a Setup Intent as the first step
indeed
Just to be clear - the Setup Intent is something you'd only make on the platform. As soon as you want to colelct payment for a connect account you'd switch to using a PaymentIntent
makes sense. Doesn't line up with the video. In his video he's describing creating a payment intent, a payment method, then cloning the PM to the connected account, and creating a PI there
From the transcript he seems to be still be talking about a Setup Intent on the platform
but I haven't watched the whole video in a while, so I may be wrong
AHHHHH
crap, sorry, you are right
I need coffee
got it, so setup intent
use it to create a PM, clone the PM, and use the PM on the connected account to create a PI
ok, will try
๐ yup!
thanks
So I'm doing const setupIntent = await stripe.setupIntents.create({ customer, description }) . I pass customer and description only. I don't have the payment_method yet. That's assigned when I presentPaymentSheet.
So far so good?
yup!
๐