#japoorv-webhooks

1 messages · Page 1 of 1 (latest)

nova gust
#

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

nova moss
#

What is the difference between invoice.paid and invoice.payment_succeeded

#

?

grave turtle
#

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