Versions in this module Expand all Collapse all v0 v0.1.1 Oct 25, 2026 v0.1.0 Oct 12, 2026 Changes in this version + var ErrIgnored = errors.New("payments: ignored webhook") + var ErrInvalid = errors.New("payments: invalid webhook") + type Checkout struct + AmountCents int64 + Email string + Reference string + SuccessURL string + type Event struct + AmountCents int64 + CheckoutID string + CreatedAt time.Time + Currency string + ID string + Kind EventKind + OrderID string + PaidCents int64 + Reference string + Review string + type EventKind int + const Disputed + const Paid + const Refunded + type Provider interface + CheckoutOrigin func() string + CreateCheckout func(ctx context.Context, c Checkout) (Session, error) + Name func() string + ParseWebhook func(header http.Header, body []byte) (Event, error) + type Session struct + ID string + URL string