#Marcel Wolf

1 messages · Page 1 of 1 (latest)

heavy currentBOT
gentle scarab
#

Hi there!

woven yacht
#

can i use the same procedure for no trial subscriptions or do i have to switch between?

gentle scarab
#

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()

woven yacht
#

but can i use the confirmSetup() in the non-zero amount too?

#

or must it be the confirmPayment

gentle scarab
#

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())

woven yacht
#

okay thank you 🙂

#

could i use the confirmSetup for coupons with one time 100% off for the first cycle to collect the payment method for later usage?