#Marcel Wolf
1 messages · Page 1 of 1 (latest)
Hi there!
Correct if there's a free trial you should use the pending_setup_intent. And when you do so, on the frontend you need to call confirmSetup() instead of confirmPayment(). https://stripe.com/docs/js/setup_intents/confirm_setup
can i use the same procedure for no trial subscriptions or do i have to switch between?
If the first invoice is for a non-zero amount (no trial), check latest_invoice.payment_intent.client_secret and use confirmPayment().
If the first invoice is for a zero amount (trial), check pending_setup_intent.client_secret and use confirmSetup()
but can i use the confirmSetup() in the non-zero amount too?
or must it be the confirmPayment
Tt's two different flows. One is using PaymentIntent (so it has to be confirmPayment()), the other is using SetupIntent (so it has to be confirmSetup())