#jimmy-3ds-subscription
1 messages ยท Page 1 of 1 (latest)
Hi ๐
All our current docs on Subscriptions are using Payment Intents. What part is unclear to you?
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
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)
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
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
Yeah, it just goes the other way around.
@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
Our canonical integration path (in the doc I linked) is that you create the payment method client-side as part of taking payment.
I would recommend you review the plain Payment Intent approach to this (without worrying about Subscriptions) just to ensure you are clear on how this works.
https://stripe.com/docs/payments/accept-a-payment
@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
Yes
OR you could use the Setup Intent approach to create the Payment method first
okay, I might go for that approach as it would be less impact on my code base
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
Okay great, thanks for your help @uncut pumice
Happy to do it ๐