# Event: donation-confirmed
# DNA-27 / RFC-0027

id: donation-confirmed
label: Donation Confirmed
description: >
  A donation was confirmed by the payment provider or third-party platform.
  This is the bottom-of-funnel conversion event — the strongest signal.
  Emit only on confirmed payment, not on form submit.

category: donation
autoEmit: false

payload:
  locale:
    type: string
    description: Active locale
    required: true
  transactionId:
    type: string
    description: >
      Opaque transaction id from the payment provider (e.g. Betterplace donation id).
      Must not contain PII. Omit if not accessible from the client.
    required: false
  amountCents:
    type: number
    description: Confirmed donation amount in the smallest currency unit
    required: false
  currency:
    type: string
    description: "ISO 4217 currency code (e.g. 'EUR')"
    required: false
