Skip to content

Permissions & Security

Financial operations require strict least-privilege separation between read-only accountants, operations staff, refund approvers, and gateway administrators.

Permission Capabilities
payments-view Read-only access to Overview, Transactions, Payment Links, Subscriptions, Plans, Invoices, and Webhook logs.
payments-manage Create payment links, manage plans and subscriptions, capture authorizations, and void uncaptured holds.
payments-refund Issue partial or full refunds against settled transactions (separated from general management for dual-control workflows).
payments-admin Full administrative access including configuring gateways, rotating SecretBox credentials, and modifying Settings.

Never commit or store raw plaintext gateway secrets. In Setup -> Payments -> Gateways, every secret field supports:

  • $env:STRIPE_SECRET_KEY (recommended for production containers and CI/CD).
  • $config:myGatewayKey (reads from site/config.php).
  • Encrypted at rest (enc:v1:...): Automatically sealed with sodium_crypto_secretbox before saving to the database and redacted from logs and API responses.
  • Concurrency & Idempotency: Every mutating financial operation uses SELECT ... FOR UPDATE row locks and strict idempotency payload fingerprinting.
  • GDPR Anonymization: Because financial records must often be retained for tax law, Payments implements contactsParticipant => true and entriesUserDeleteListener => true. Deleting a Contact or ProcessWire User invokes anonymizeForContact() / anonymizeForUser(), replacing personal identifiers with Anonymized Customer while preserving exact monetary totals.
Enforce webhook payload caps and hosted payment link expiration windows from Setup -> Payments -> Settings.

Next steps