#jimmy-3ds-subscription

1 messages ยท Page 1 of 1 (latest)

soft summitBOT
uncut pumice
untold sundial
#

I was hoping for an overview, I currently create a source, see if 3D secure if supported or not, if it is I create a 3DSecureSource and with the source I create a subscription. I'm struggling to find a workflow for creating a subscription with paymentintents

#

(I'm migrating away from the srouces stuff to support 3d secure 2)

uncut pumice
#

The doc I shared goes over the steps pretty well. You start by creating the subscription which then creates it's initial invoice which automatically creates the Payment Intent associated with that Invoice which is what you use with Stripe JS to collect payment method information

untold sundial
#

ah okay, thanks. so I don't need to create the payment intent, that's the bit i was struggling with

#

as I have created a payment intent, but not sure how to tell the api this was a subscription

#

thanks

uncut pumice
#

Yeah, it just goes the other way around.

untold sundial
#

@uncut pumice what about on the JS side of things? At the moment I do stripe.createSource(card) which I then pass back to my server - it seems this is no longer required but I'm unsure what I'd need to add as it will need something

uncut pumice
#

Our canonical integration path (in the doc I linked) is that you create the payment method client-side as part of taking payment.

untold sundial
#

@uncut pumice At the moment I just ask for the card details, then create the subscription on the server and redirect if required. I was hoping to reproduce that payment flow. Based on the example it appears you now need to create a subscription before collecting payment details - is that correct? Thanks

uncut pumice
#

Yes

#

OR you could use the Setup Intent approach to create the Payment method first

untold sundial
#

okay, I might go for that approach as it would be less impact on my code base

uncut pumice
#

And set that payment method as the default for invoices. Then the subscription for that customer would use that payment method automatically

#

Setup Intents support 3DSv2

untold sundial
#

Okay great, thanks for your help @uncut pumice

uncut pumice
#

Happy to do it ๐Ÿ™‚