Extract the Invoice ID from a webhook event, when present.
Works on invoice.* events (the object is the invoice) and on objects that reference an invoice (e.g. Checkout Sessions, PaymentIntents).
invoice.*
Extract the Invoice ID from a webhook event, when present.
Works on
invoice.*events (the object is the invoice) and on objects that reference an invoice (e.g. Checkout Sessions, PaymentIntents).