Hide "Pay online" when no provider is on or the amount is under R15

A shared useOnlinePayments hook (GET /api/payments/providers) gates the
registration success page, My Events (Make payment, Make donation), the
donate page, Sponsor a spot, the register form's donation box and the
supervisor Payment Link tab; they explain why where it helps.

Roadmap: SnapScan and Zapper dropped; later versions move up by two.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 15:04:58 +02:00
co-authored by Claude Opus 5.5
parent e91a538ced
commit fcb7a00121
12 changed files with 160 additions and 46 deletions
+2 -1
View File
@@ -206,7 +206,8 @@ Feedback → Attendance**.
- **PayFast** — the second online provider (card, instant EFT…), with sandbox and live
modes. When several providers are on, payers choose on the "Pay online" page; a
payment of a different amount from the checkout is held for review instead of being
recorded.
recorded. When no provider is on (or the amount is under R15), nothing offers to pay
online.
- **Payment links** — supervisors can generate and send a Yoco link for any
amount (including partial).
- **Manual payments** — cash, card, EFT, voucher or other, recorded by staff.