Enum PaymentEventType
- Namespace
- NuvTools.Payment.Enumerations
- Assembly
- NuvTools.Payment.dll
The kinds of webhook a payment provider sends that a caller is expected to act on.
public enum PaymentEventType
Fields
CheckoutCompleted = 6A provider-hosted checkout was completed. Its purpose is in CheckoutType; a caller acts only on the ones it opened.
CreditNoteIssued = 15A credit note was issued against an invoice, refunding part or all of it.
InvoiceFinalized = 11An invoice was issued: it has its number now, and its charge follows.
InvoicePaid = 9A subscription's invoice was paid.
InvoicePaymentActionRequired = 12Paying an invoice needs the customer to confirm it — a card asking for its owner.
InvoicePaymentFailed = 10Paying a subscription's invoice failed; the provider may retry it.
InvoiceUncollectible = 14The provider gave up collecting an invoice.
InvoiceVoided = 13An invoice was voided; nobody owes it.
PayeeAccountUpdated = 1What the provider allows a payee to do has changed — being paid out, most of all.
PaymentFailed = 4A payment was refused.
PaymentMethodRemoved = 16A saved payment method was removed from its customer.
PaymentMethodSaved = 2A customer saved a payment method, and it can now be charged off-session.
PaymentRefunded = 5A payment was refunded, in whole or in part.
Sent for a refund the caller asked for and for one raised at the provider — a dispute resolved in the customer's favour, or somebody acting in the provider's dashboard. That is why it is worth acting on rather than inferring from the caller's own refund call: the caller's records are otherwise the last to know.
PaymentSucceeded = 3A payment settled.
SubscriptionChanged = 7A subscription was started or changed — its plan, its status, its renewal.
SubscriptionEnded = 8A subscription ended.
Unknown = 0Not one of the events below. Record it and ignore it.
Remarks
A provider client maps its own event names onto these. Anything it does not recognise arrives as Unknown rather than being dropped, because a caller still has to record that a delivery happened — an endpoint that fails on an event it has no use for makes the provider retry it for days.