payment_intent.succeeded | onPaymentSucceeded | kit.payments.sync(paymentIntent.id) |
payment_intent.payment_failed | onPaymentFailed | kit.payments.sync(paymentIntent.id) |
invoice.created | onInvoiceCreated | kit.invoices.sync(invoice.id) |
invoice.updated | onInvoiceUpdated | kit.invoices.sync(invoice.id) |
invoice.paid | onInvoicePaid | kit.invoices.sync(invoice.id) |
invoice.payment_failed | onInvoicePaymentFailed | kit.invoices.sync(invoice.id) |
invoice.voided | onInvoiceVoided | kit.invoices.sync(invoice.id) |
invoice.deleted | onInvoiceDeleted | storage.markInvoiceDeleted(invoice.id), only if a storage adapter is configured |
customer.subscription.created | onSubscriptionCreated | kit.subscriptions.sync(subscription.id) |
customer.subscription.updated | onSubscriptionUpdated | kit.subscriptions.sync(subscription.id) |
customer.subscription.deleted | onSubscriptionDeleted | kit.subscriptions.sync(subscription.id) |
setup_intent.succeeded | onSetupIntentSucceeded | kit.paymentMethods.sync(customerId), where customerId is read off the SetupIntent |
checkout.session.completed | onCheckoutSessionCompleted | None. Nothing is synced automatically for this event, since the checkout session itself isn't a persisted Stripe billing object. Handle this event to call kit.checkout.markComplete() yourself, and to fulfil the order. |
| Any other event type | onUnhandledEvent | None. |