#Jack_chai

1 messages ยท Page 1 of 1 (latest)

torpid lanceBOT
trail shell
#

which we create payment intent first and use webhook listen to payment succeeded then create new subscription

rough heath
#

Hello ๐Ÿ‘‹
The canonical guides here also create the subscription prior to collecting the PaymentMethod details.
https://stripe.com/docs/billing/subscriptions/build-subscriptions

You won't be able to use a PaymentIntent but you could use SetupIntents to collect PaymentMethod information prior to creating the subscription. However, in-case SCA/3DS is triggered then your customers might have to perform authentication twice

trail shell
#

hi Hanzo, thx for ur confirmation

#

and if user discard the payment, that inactive subscription will also be removed ?

rough heath
#

I believe it starts in an incomplete state and would move to active state if the payment is made.
If no payment for the first invoice is made within 23 hours then the subscription will move to incomplete_expired state which is terminal state so existing invoice will be voided and no new future invoices will be generated.

trail shell
#

this is very helpful, thx again

rough heath
#

NP! ๐Ÿ™‚ Happy to help