#dacoin-recent-changes
1 messages · Page 1 of 1 (latest)
I want to know if it is always the right way to do or not.
Because https://stripe.com/docs/payments/save-and-reuse?platform=web by example give another way.
What's the best way?
Yes, subscription with trial or not, depends of case.
Ok, I will suppose that https://github.com/stripe-samples/developer-office-hours/blob/master/2019-10-02-billing/client/pricing.html#L69-L89 is still the right to do for subscription case.
Just, with JS Stripe SDK evolution, I wondering if there are new modern methods to replace calling two different methods handleCardSetup & handleCardPayment?
That code will still work
There is a different way https://stripe.com/docs/billing/subscriptions/build-subscription?ui=elements#complete-payment
Or this if you are using the card elemeent https://stripe.com/docs/billing/subscriptions/build-subscription?ui=elements#complete-payment
So yes, this would be doing that with one call to confirm the PaymentIntent on the subscription's first invoice
Ok, so the concept of setupIntent has kind of disappear with subscriptions case, and is now automatically handle?
Will try that, and so, otherwise will go back with the old way of https://github.com/stripe-samples/developer-office-hours/blob/master/2019-10-02-billing/client/pricing.html#L69-L89, thanks