Skip to content

Payments for ProcessWire

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.

Setup -> Payments centralizes multi-gateway ledger totals, recurring billing plans, configured gateways, and operational CLI commands.

Idempotent Financial Ledger

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.

Requirement Minimum Version Notes
PHP 8.4+ Strict typed value objects (Money, PaymentIntentRequest) and sodium encryption.
ProcessWire 3.0.271+ Lazy 'autoload' => false boot; zero overhead on non-payment requests.
Required Modules Inertia, React, Entries, Contacts, Currency Combines Entries blueprints with transactional entries_tbl_payments_* managed SQL tables.
Companion Module ProcessPayments Installed automatically at Setup -> Payments (10 views across 4 groups).

Next steps