How shaiinarab/pabetoop-club works
Pabetoop Club is a white-label membership and billing platform for sports clubs. A guardian or manager signs in to a server-rendered portal: guardians review player, subscription and invoice status and can start payment; managers maintain members and family links, plans and invoices. Payment then proceeds through provider initiation, callback verification and settlement. PocketBase manages the embedded SQLite-backed records. The graph also preserves documented dunning, branding, PWA, backup-integrity and ACWR capabilities; the ACWR code is explicitly not wired to routes. Some unsampled integrations are shown only as unverified.
Main entry points: payments_v2.go Payment lifecycle · auth.go Sessions and security · dashboard.go Manager and family portals · app.go HTTP application
Components 17
Access and portals
- HTTP application
internal/app/app.go - Sessions and security
internal/app/auth.go - Manager and family portals
internal/app/dashboard.go
Membership operations
- Plans and family links
internal/app/manager_billing.go - Player subscriptions
internal/app/manager_operations.go - Reminder scan
internal/app/reminders.go
Billing and payments
- Payment lifecycle
internal/app/payments_v2.go - Zarinpal gateway
internal/app/payments_v2.go
Platform capabilities
- Stub service adapters
internal/adapters/stub.go - White-label identity
internal/brand/brand.go - ACWR calculations
internal/domain/acwr.go - Installable PWA
assets/js/sw.js - Backup integrity checker
tools/backup-check/src/main.rs - PocketBase / SQLite
Other components
- Guardian
- Manager
- Zarinpal service
Connections 17
- Guardian → Sessions and security: signs in
internal/app/auth.go - Manager → Sessions and security: signs in
internal/app/auth.go - Sessions and security → PocketBase / SQLite: authenticates against
internal/app/auth.go - Guardian → Manager and family portals: views status
README.md - Manager → Manager and family portals: manages members
README.md - Manager and family portals → PocketBase / SQLite: reads records
internal/app/dashboard.go - Plans and family links → PocketBase / SQLite: writes billing records
internal/app/manager_billing.go - Player subscriptions → PocketBase / SQLite: writes subscriptions
internal/app/manager_operations.go - Reminder scan → PocketBase / SQLite: scans and audits
README.md - Guardian → Payment lifecycle: starts invoice payment
README.md - Payment lifecycle → PocketBase / SQLite: updates payment records
internal/app/payments_v2.go - Payment lifecycle → Zarinpal service: starts and verifies
README.md - White-label identity → HTTP application: provides deployment brand
internal/app/app.go - HTTP application → PocketBase / SQLite: embeds PocketBase
README.md - Backup integrity checker → PocketBase / SQLite: checks backup contents
README.md - Guardian → Installable PWA: installs portal
README.md - Stub service adapters → Reminder scan: may send reminders