#rasparac-create-subscription

1 messages · Page 1 of 1 (latest)

cloud turtle
#

confirmCardSetup will be for when you don't want to charge your customer at all upfront

#

Do you still want them to pay in the beginning, even if there is a trial?

snow briar
#

No, i want them to pay after the trial ends in case of trial, but in case there is no trial period i want them to pay in the beginning.

#

So not sure what is best practice in this case.

cloud turtle
#

Then yes, use confirmCardPayment and the PaymentIntent when you want to get a payment upfront. Use confirmCardSetup and the SetupIntent when you just want to collect the details now

snow briar
#

Thanks!

#

Can you give me advice what webhooks to track in my case? based on steps i'm doing
@cloud turtle

cloud turtle
#

Missed your message. You will want to listen to customer.subscription.created and customer.subscription.updated

#

Possibly payment_intent.succeeded and setup_intent.succeeded depending on what you are looking to do