kit.invoices.payWithSavedMethod()send_invoice collection, or because an automatic charge failed.| Field | Type | Required | Description |
|---|---|---|---|
invoiceId | string | Yes | The invoice to pay. |
customerId | string | Yes | Must match the invoice's own customer. |
paymentMethodId | string | Yes | A payment method already attached to that customer. |
retrieve()'s response, with status set to 'paid' on success.| Exception | When |
|---|---|
StripeOperationError | The invoice is not in a payable state (already paid or void), the card is declined, or the invoice does not belong to the given customer. |
storage adapter is configured, the result is persisted via saveInvoice().mode (api/elements) is irrelevant here—there is nothing for the customer to confirm on the frontend.