Panel/modules/billing/classes
copilot-swe-agent[bot] 41a812fdd6
feat: add PayPal sandbox/live credentials, webhook endpoint, and admin diagnostics
- config.inc.php: new sandbox/live credential structure with paypal_mode, separate
  sandbox/live client_id, client_secret, webhook_id, and webhook_path
- config.example.php: updated to match new structure
- config_loader.php: adds defaults and backward compat mapping from old
  $paypal_sandbox/$paypal_client_id variables; adds gsp_paypal_* helper functions
- PayPalGateway.php: fromConfig() uses gsp_paypal_* helpers with fallback
- cart.php: uses gsp_paypal_get_client_id()/gsp_paypal_is_sandbox() helpers
- webhook.php: updated to use gsp_paypal_* helpers for credentials/API base
- paypal/webhook.php: new full-featured webhook receiver with signature
  verification, idempotency log, event processing, provisioning trigger
- admin_config.php: expanded to separate sandbox/live fields, computed webhook URL,
  diagnostics panel showing credential status and recent webhook events
- module.php: bumped to v3.3/db_version 3, adds billing_paypal_webhook_events table

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/f974e469-8562-41df-ba37-bc340f5a154c

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-05-06 16:14:47 +00:00
..
BillingRepository.php fix: billing checkout — auto-provisioning, zero-dollar flow, duplicate prevention, paid-invoice cart fix 2026-05-05 19:07:21 +00:00
BillingService.php fix(billing): address code review issues - ALTER TABLE syntax, null period handling, type detection 2026-05-02 12:23:23 +00:00
GatewayFactory.php refactor(billing): clean architecture with payment gateway abstraction 2026-05-02 12:17:36 +00:00
ManualGateway.php refactor(billing): clean architecture with payment gateway abstraction 2026-05-02 12:17:36 +00:00
PaymentGatewayInterface.php refactor(billing): clean architecture with payment gateway abstraction 2026-05-02 12:17:36 +00:00
PayPalGateway.php feat: add PayPal sandbox/live credentials, webhook endpoint, and admin diagnostics 2026-05-06 16:14:47 +00:00
StripeGateway.php refactor(billing): clean architecture with payment gateway abstraction 2026-05-02 12:17:36 +00:00