#mochihealth
1 messages · Page 1 of 1 (latest)
They'll both fire at roughly the same time. The difference is that one has a Charge object as the payload, and one as the Invoice as the payload
which one would be better to use
and whats the difference between invoice.paid and invoice.payment_succeeded
An invoice can have multiple payments, so invoice.paid only fires when all the payments are successful. As for which event is best to listen for, that depends on what you're doing, but usualling invoice.paid is sufficient
how about invoice.payment_succeeded
What about it?