Table of Contents

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 = 6

A provider-hosted checkout was completed. Its purpose is in CheckoutType; a caller acts only on the ones it opened.

CreditNoteIssued = 15

A credit note was issued against an invoice, refunding part or all of it.

InvoiceFinalized = 11

An invoice was issued: it has its number now, and its charge follows.

InvoicePaid = 9

A subscription's invoice was paid.

InvoicePaymentActionRequired = 12

Paying an invoice needs the customer to confirm it — a card asking for its owner.

InvoicePaymentFailed = 10

Paying a subscription's invoice failed; the provider may retry it.

InvoiceUncollectible = 14

The provider gave up collecting an invoice.

InvoiceVoided = 13

An invoice was voided; nobody owes it.

PayeeAccountUpdated = 1

What the provider allows a payee to do has changed — being paid out, most of all.

PaymentFailed = 4

A payment was refused.

PaymentMethodRemoved = 16

A saved payment method was removed from its customer.

PaymentMethodSaved = 2

A customer saved a payment method, and it can now be charged off-session.

PaymentRefunded = 5

A 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 = 3

A payment settled.

SubscriptionChanged = 7

A subscription was started or changed — its plan, its status, its renewal.

SubscriptionEnded = 8

A subscription ended.

Unknown = 0

Not 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.