#Kido-cli
1 messages · Page 1 of 1 (latest)
it's a known issue in stripe-cli that it doesn't always forward events yes, unfortunately. https://github.com/stripe/stripe-cli/issues/600
i see so it basically about CLI issue right? its not about the whole webhook issue
what im afraid of its when my website goes live, and we have a proper webhook
this still happens
yep! it's just a problem in how cli forwards the event to your local server, sending the event to a regular webhook endpoint shouldn't have the same problem.
one more question, issit possible for the invoice.paid event to be forward first before invoice.finalized?
because im using this invoice.finalized event to create the invoice in my system, then when receive invoice.paid event it then mark the invoice as paid in my system
if invoice.paid event come first before invoice.finalized then im in trouble
yes the order is not guaranteed and you need to handle events arriving in any order
do you really need to listen to invoice.finalized ? That might be a simple solution, just don't listen to that event.
Otherwise a common approach is to retrieve the invoice from the API when you get an event(so you get the latest state of the object) and sync your system against that, rather than the event payloads.