$kit->invoices->voidInvoice()retrieve(), with status set to 'void'.| Exception | When |
|---|---|
StripeOperationError | The invoice has already been paid, or is already void, or does not exist. Only open or draft invoices can be voided. |
storage adapter is configured, StripeKit calls markInvoiceDeleted($invoiceId) in addition to saveInvoice(), so your own schema can treat voided invoices distinctly if it needs to, for example excluding them from revenue reports.$kit->raw, StripeKit does not currently expose a refund method.