Activities: free (0-price) tickets attempt an invalid zero-amount invoice #106
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp#106
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?
From the 2026-06-10 design review.
Problem
Free events (ticket price
0) still go through the paid checkout path. The client callsticketApi.requestTicket()unconditionally (useTicketPurchase.ts→TicketApiService.requestTicket,POST /events/api/v1/tickets/{eventId}) with no zero-amount guard, and the backend tries to create a Lightning invoice for 0 sats, which is invalid.Proposed fix (backend-led)
This is primarily a backend change in the
aiolabs/eventsextension: when an event'sprice_per_ticketis 0, skip invoice creation and issue the ticket directly (a free-registration path), returning apaid: trueticket. The webapp side then just needs to route 0-price events to that path and skip the invoice/QR step.Notes
aiolabs/events(extension) + a small webapp checkout-flow branch.Deferred from the ui-tweaks-2 round as a backend-dependent item, not a client-only UI fix.