#unknownbeef
1 messages · Page 1 of 1 (latest)
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.
interesting, in testing so far i've seen the trial generate a zero-dollar invoice for the trial period.
Yes thats right
but that doesn't involve any payment from the payment method provided
It's automatic because the amount is zero
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?
Sort of, but following the trial the subscription will become active even if the payment fails, unless you set rules about automatic cancellation etc
i do have "if all retries for a pyament fail -> cancel the subscription" set, if that's what you're referring to
Yep, so it'll be active until those retries are exhausted
awesome, i really appreciate the help 🙂