Payments (trk/processwire-payments) is the multi-gateway payment orchestration and financial ledger layer for ProcessWire 3. Process one-time authorizations, captures, refunds, and voids, issue signed /pay/{token} hosted payment links, vault customer payment methods, run recurring and usage-based subscriptions, orchestrate marketplace sub-merchant transfers, and reconcile signed inbound webhooks from Setup -> Payments.
Execute authorize(), purchase(), capture(), refund(), and void() with Money::fromMajor() / fromMinor(), strict idempotency fingerprinting, SELECT ... FOR UPDATE row locks, and priority/currency gateway routing.
Hosted Links & Saved Sources
Create SHA-256 /pay/{token} hosted checkout links (rawToken returned once) and manage vaulted customer cards or payment sources via listSavedSources(), saveSource(), and revokeSavedSource().
Subscriptions, Usage & Marketplace
Manage recurring payments-plans, full subscription lifecycles, metered usage metering (recordUsage()), customer billing portals, PDF invoices, and marketplace sub-merchant splits (platformFeeMinor, splits).
Pluggable Drivers & Encrypted Vault
Mix built-in drivers (Manual, Dummy, Stripe, PayPal, Paddle, iyzico) or custom paymentsDriver modules with SecretBox ($env:VAR, $config:key, enc:v1:) and verified inbound webhooks.