#japoorv-webhooks
1 messages · Page 1 of 1 (latest)
@nova moss I'd just use invoice.paid for all those use cases.
https://stripe.com/docs/billing/subscriptions/webhooks#tracking
either way customer.subscription.updated fires whenever a field on the Subscription object changes value.
for 1) I think it fires yes because status goes incomplete -> paid
for 2) I think it fires yes because the current_period_start/end both change
for 3) it likely fires yes because latest_invoice will have changed
but the correct approach is to to use invoice.paid (the Invoice object also has a useful field called billing_reason https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason ) and activate your product based on that
hey there, just catching up
@nova moss the invoice.payment_succeeded event only fires if an actual payment was collected when an invoice was paid
whereas the invoice.paid event will fire any time an invoice advances to paid, even if no payment was collected (eg, a trial invoice for $0, a discounted invoice, an invoice for a customer with a balance large enough to cover the entire amount, etc)
in most scenarios you want invoice.paid