OXID Payment Base
Package: oxid-esales/payment-base
The oxid-esales/payment-base module is the provider-agnostic foundation for
all OXID payment integrations. It implements a Smart-Contract Architecture
backed by a PSR-14 event system, so payment service providers (PSPs) only need
to ship a thin adapter while business logic — order creation, fulfillment,
refund routing, admin UI — is shared across providers.
What you get
Smart-Contract lifecycle — orders are only created when all conditions (payment authorized, fraud check, stock reserved …) have been fulfilled.
PSR-14 event bus — react to contract and payment events from any module without coupling to a specific PSP.
Shared admin Payment tab — a single OXID admin panel hosting per-PSP panel providers via a tagged service registry.
Centralized refund routing — payment-base decides whether a refund maps to
refund,cancel-authorpartial-capturebased on contract state; the active PSP only executes the verb.Battle-tested storage model — provider-agnostic contract, transaction, customer, idempotency, session and webhook-log tables.
Checkout shortcuts — when the shop offers exactly one payment method or exactly one delivery set, the step is assigned and skipped instead of showing the customer a choice they do not have.
Abandoned-checkout collection — a console command and a webhook-driven sweep retire the orders that early order creation leaves behind, and return their vouchers to the pool.
Headless checkout over GraphQL — apps and custom storefronts pay through the OXID GraphQL API with the same contracts, orders and webhooks as the theme, including guest checkout and a sealed hand-over of public SDK keys.
Target audience
This documentation is written for module developers who:
build a new PSP integration on top of payment-base,
consume payment events from other modules (ERP, CRM, shipping, returns …),
extend or replace pieces of the shared admin UI.
End-customer / shop-operator instructions for individual PSPs live in their own module documentation (e.g. Stripe Wallet, PayPal Checkout).
Table of Contents
- Architecture
- Smart-Contract Lifecycle
- Available Events
- Refund Intent Routing
- Shared “Payment” Tab on the Order Detail Page
- Module Settings
- Headless Checkout (GraphQL)
- Maintenance
- Validation System
- Money and Currency Arithmetic
- Extension Mechanisms
- Integration Examples
- Best Practices
- Database Schema
- Supported Providers