Optional pay-what-you-want / donation tickets #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
donationprice mode + optionalmin_amount).api_ticket_createmints an amountless invoice (or an invoice for the buyer-supplied amount ≥ min) instead of the fixedprice_per_ticketinvoice.sats_paid(source-of-truth from the settled payment, not derived).Notes