Skip to content

feat(finance): 5% infrastructure fee and organiser commission accounting - #59

Merged
Satelink-Protocol merged 11 commits into
mainfrom
feature/infrastructure-fee-accounting
Nov 22, 2026
Merged

Satelink-Protocol merged 11 commits into
mainfrom
feature/infrastructure-fee-accounting

Conversation

@Satelink-Protocol

Copy link
Copy Markdown
Contributor

Objective

Deliver transparent 5% organiser-side infrastructure fee accounting across attendee checkout, organiser dashboard, and admin finance console, incorporating all security hardening, fail-closed guards, and critical remediations.

Included Milestones & Remediations

  1. Critical Base Remediations (from PR fix: Recurring session venues, category ticket pricing, automated checkout, WCAG tokens & WhatsApp notifications #57):
    • Recurring session venues, category tickets, automated checkout, WCAG tokens, WhatsApp notifications, sandbox UPI separation.
  2. 5% Infrastructure Fee & Organiser Commission Accounting:
    • 5% fee calculated on base ticket price for organiser events.
    • Organiser-side fee accounting, invoices, UTR submissions, and admin verification queue.
    • Migration 030: Additive, non-blocking financial schema.
  3. Hardening & Verification Gate (from PR fix(finance): infrastructure fee accounting security hardening & verification gate #58):
    • Tenant isolation & rate limiting.
    • Upfront idempotency on fee accrual.
    • Cross-organiser allocation prevention.
    • Screenshot/proof URL sanitization (rejecting data/javascript schemes).
    • Production UPI fail-closed guards (development fallback blocked in production runtime).
    • Responsive layout down to 320px.

All 1,085+ unit/integration tests and 622 browser E2E tests passing cleanly.

Satelink-Protocol and others added 11 commits November 22, 2026 14:13
…ed checkout, WCAG tokens & WhatsApp notifications

- Add migration 029 introducing event_sessions with venue overrides per occurrence and category metadata on ticket_types, bookings, tickets and ticket_scans
- Implement recurring series Option A (same venue) and Option B (per-session venue) in event schedule domain, wizard UI, validation, and ticket issuing
- Support category-based ticket pricing & capacity accounting (General, Men, Women, Couple with admit_count=2, Group with admit_count=4, VIP, Early Bird, Custom)
- Rebuild mobile-first UPI paid ticket checkout eliminating 'Paid Draft — External Checkout Pending' with automated provider verification and fail-closed state machine
- Integrate WhatsApp Cloud API booking confirmations with session-specific venue details, encrypted pass link, and automated dispatch
- Implement centralized WCAG 2.2 AA design tokens ensuring >= 4.5:1 text and >= 3:1 UI boundary contrast across all dark indigo cards, inputs, and dialogs
- Add comprehensive test suites for migrations, accessibility contrast, recurring venues, category ticket pricing, and end-to-end automated checkout
…ueue

- Add upfront idempotency check in recordBookingFeeEntry to prevent double-counting of fee payable and duplicate invoice lines
- Prevent cross-organiser invoice allocations and invalid invoice status in confirmFeePayment
- Enforce strict ownership check on invoiceId/paymentReference in submitFeePayment
- Validate evidence screenshot URLs against URL injection / unsafe schemes
- Add state machine guards against re-rejecting or investigating settled/rejected claims
- Add rate limits on organiser finance endpoints and CSV statement export
- Add proof evidence preview column in admin payment verification queue
- Add comprehensive automated tests covering all hardened security and accounting scenarios
…th organiser_user_id

- Align createUpiPaymentIntent with recordBookingFeeEntry by only accruing 5% infrastructure fee for organiser-managed events
- Preserve existing internal/feed event and direct platform ticket checkout amounts
- Fixes CI test failure in test/upi-checkout.test.js
…nfigured settlement claims, and add regression tests
…-hardening

fix(finance): infrastructure fee accounting security hardening & verification gate
@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
strangersmeetup Ready Ready Preview Nov 22, 2026 6:38pm UTC

@Satelink-Protocol
Satelink-Protocol merged commit 227465b into main Nov 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant