#unknownbeef

1 messages · Page 1 of 1 (latest)

glad lionBOT
spark dove
#

It depends on exactly what you need, but for provisioning/fulfillment you'd probably want to use checkout.session.completed given the trial means there is no payment that can fail, just a checkout session to be completed or not.

#

Then for the paid renewal, the invoice.payment_failed would be your signal for payment issues. You could optionally configure automatic payment recovery and cancellation if you wanted, then deprovision only once the subscription is canceled (deleted) following some time after payment failure.

glad lionBOT
edgy kiln
#

interesting, in testing so far i've seen the trial generate a zero-dollar invoice for the trial period.

spark dove
#

Yes thats right

#

but that doesn't involve any payment from the payment method provided

#

It's automatic because the amount is zero

edgy kiln
#

is it possible to just use customer.subscription.* (and filter by status) to do provisioning/updates/cancels? or would that not work for certain types of payments?

spark dove
#

Sort of, but following the trial the subscription will become active even if the payment fails, unless you set rules about automatic cancellation etc

edgy kiln
#

i do have "if all retries for a pyament fail -> cancel the subscription" set, if that's what you're referring to

spark dove
#

Yep, so it'll be active until those retries are exhausted

edgy kiln
#

awesome, i really appreciate the help 🙂