Optional pay-what-you-want / donation tickets #30

Open
opened 2026-06-20 06:57:54 +00:00 by padreug · 0 comments
Owner

Follow-up from the free-ticket work.

Distinct from free tickets (price 0): a "pay-what-you-want" / donation ticket lets the buyer choose a positive amount at or above a minimum. This is the legitimate use of an amountless Lightning invoice — the buyer picks the amount (≥ 1 sat to route).

Shape

  • Event-level opt-in (e.g. donation price mode + optional min_amount).
  • api_ticket_create mints an amountless invoice (or an invoice for the buyer-supplied amount ≥ min) instead of the fixed price_per_ticket invoice.
  • On payment, the actual settled amount is recorded as sats_paid (source-of-truth from the settled payment, not derived).
  • Webapp buyer UI: amount input with the minimum enforced.

Notes

  • Do NOT conflate with free (price 0) — free short-circuits with no invoice; donation always produces a payable invoice.
  • Lower priority than free issuance + forfeit + abuse limits.
Follow-up from the free-ticket work. Distinct from free tickets (price 0): a "pay-what-you-want" / donation ticket lets the buyer choose a positive amount at or above a minimum. This is the legitimate use of an amountless Lightning invoice — the buyer picks the amount (≥ 1 sat to route). ## Shape - Event-level opt-in (e.g. `donation` price mode + optional `min_amount`). - `api_ticket_create` mints an amountless invoice (or an invoice for the buyer-supplied amount ≥ min) instead of the fixed `price_per_ticket` invoice. - On payment, the actual settled amount is recorded as `sats_paid` (source-of-truth from the settled payment, not derived). - Webapp buyer UI: amount input with the minimum enforced. ## Notes - Do NOT conflate with free (price 0) — free short-circuits with no invoice; donation always produces a payable invoice. - Lower priority than free issuance + forfeit + abuse limits.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aiolabs/events#30
No description provided.