Module Settings

Payment Base ships twelve admin settings in seven groups. They are deliberately few: anything provider-specific belongs in the PSP module, so only switches that must apply across providers live here.

Shop operators find them under Extensions ‣ Modules ‣ OXID Payment Base ‣ Settings.

Overview

Setting

Technical name

Default

Group

Use iframe instead of checkout button

blPaymentBaseUseIframe

off

iframe_checkout

Validation API rate limit

iValidationApiRatePerMinute

30

validation

Skip the payment step when only one payment method is available

blPaymentBaseAutoAssignSinglePayment

on

checkout_flow

Skip the shipping-method selection when only one delivery set is available

blPaymentBaseAutoAssignSingleShipping

on

checkout_flow

Return vouchers to the pool when an order is cancelled or deleted

blPaymentBaseReleaseVouchersOnOrderEnd

on

cleanup

Cleanup period (days)

iPaymentBaseCleanupPeriod

7

cleanup

Stale checkout timeout (minutes)

iPaymentBaseStaleCheckoutMinutes

30

cleanup

Allowed return origins for headless clients

sPaymentBaseHeadlessReturnOrigins

empty

headless

Trusted reverse proxies

sPaymentBaseTrustedProxies

empty

webhooks

Header carrying the caller’s address

sPaymentBaseClientIpHeader

X-Forwarded-For

webhooks

Return link lifetime (hours)

iPaymentBaseReturnTokenTtlHours

24

return_leg

Still accept return links issued before the shared return token

blPaymentBaseAcceptLegacyReturnTokens

on

return_leg

Note

Removed: Calculate VAT per line item

The setting blPaymentBasePerLineVat and the oxPriceList extension behind it were removed in v1.7.2. With the setting on, the shop rounded VAT per line before summing, so that a provider payload would add up – the shop bent to the provider. The rule is now the other way round: OXID’s totals win. A PSP module absorbs any rounding residual in its own payload (see Money and Currency Arithmetic).

Shops that had the box ticked return to OXID core rounding for new orders; existing orders are untouched. A leftover value in oxconfig has no effect.

Use iframe instead of checkout button

Decides whether a PSP renders its payment UI inline (embedded in the shop page) or as a button that redirects the customer to the provider’s hosted page.

The flag is provider-agnostic on purpose. A PSP whose payment handler opts in embeds its payment UI via the checkout footer widget instead of rendering a redirect button. PSPs that do not support an embedded mode ignore the flag and behave unchanged.

Reading the flag from a PSP module

Never read the setting directly from ModuleSettingService. Inject IframeCheckoutSettingsInterface instead — it keeps the module id and the setting name in one place and degrades safely to false when the container is unavailable:

use OxidEsales\PaymentBase\Service\IframeCheckoutSettingsInterface;

final class MyPaymentHandler
{
    public function __construct(
        private readonly ?IframeCheckoutSettingsInterface $iframeSettings = null
    ) {
    }

    private function isEmbedded(): bool
    {
        return $this->iframeSettings?->isEnabled() ?? false;
    }
}

Declare the dependency as nullable and default it to null. A PSP module compiled against an older payment-base release then still constructs, and falls back to the redirect flow.

Render mode convention

PSPs that support both presentations publish the resolved mode to their templates as a renderMode value — 'iframe' when embedded, 'redirect' otherwise. Reusing the same two tokens across providers keeps theme overrides portable.

Note

The embedded presentation affects both the standard order page and the OnePage Checkout. Test both if your shop offers both routes.

Validation API rate limit

Caps how many requests a single visitor address may send to the central validation endpoint per minute. It is the limit of the rate-limit guard described in Validation System.

  • The visitor address is resolved through the trusted proxies (see Webhooks and caller addresses). Behind a reverse proxy or CDN without that configuration, all visitors share the proxy’s address – and one budget.

  • A value that is not a positive number fails the request; there is no guessed fallback.

  • The limit applies to every PSP alike. A per-module override no longer exists.

Checkout flow

Two independent switches that remove a checkout step the customer cannot actually decide anything in. Both are on by default: they can only take effect when there is exactly one option, so there is nothing for the customer to lose. They are separate settings because a merchant may want one shortcut and not the other.

Skip the payment step when only one payment method is available

blPaymentBaseAutoAssignSinglePayment — when the shop offers exactly one payment method for the current user, delivery set and basket price, the checkout assigns it and skips the selection step. The payment block is also left off the order page, where it would show a single radio button that is already selected.

Turn it off to keep the confirmation step even when there is nothing to choose.

Skip the shipping-method selection when only one delivery set is available

blPaymentBaseAutoAssignSingleShipping — the shipping half of the same idea. When exactly one delivery set applies, the checkout assigns it, leaves the selector out of the payment step and the carrier block off the order page.

The assignment is also persisted (sShipSet), which the shop core does not do on a plain render — without it the selection would be forgotten on the next request.

Reading the decision from a PSP or theme module

The decision is available through two small interfaces per topic — a resolver that answers whether there is exactly one option, and an assigner that carries it out:

use OxidEsales\PaymentBase\Checkout\Contract\SinglePaymentResolverInterface;
use OxidEsales\PaymentBase\Checkout\Contract\SinglePaymentAssignerInterface;

// $candidates come from the payment list the shop has already filtered
$paymentId = $resolver->resolve($candidates);   // null => the customer must choose

if ($paymentId !== null) {
    $assigner->assign($paymentId, $user);
}

The shipping side mirrors it with SingleShippingResolverInterface and SingleShippingAssignerInterface; the shipping assigner takes no user, because the id it receives came out of the shop’s own filtered active-set list one statement earlier.

Note

Resolvers only ever answer with an option the shop had already filtered for the current user, country, delivery set and basket. They never widen the choice — they only recognise that there is just one.

Cleanup

A PSP module creates the order before redirecting the customer to the provider, so that an order number exists when the customer returns. A customer who never returns leaves that order at OXTRANSSTATUS = 'NOT_FINISHED' with its vouchers still spent. The three cleanup settings govern how those leftovers are collected.

Return vouchers to the pool when an order is cancelled or deleted

blPaymentBaseReleaseVouchersOnOrderEnd — when an order ends in the admin (cancelled/storno or deleted outright), the vouchers it was holding go back to the pool and the customer can spend them again.

On by default: leaving a customer’s voucher spent on an order that was called off is a data defect rather than a policy. Switch it off to restore the shop core’s behaviour byte for byte — appropriate for shops whose voucher series are single-use per customer by policy.

Cleanup period (days)

iPaymentBaseCleanupPeriod — how old an unfinished order has to be before the maintenance command described in Maintenance treats it as abandoned. Default 7 days.

Values below 1 are refused when the setting is read: “older than 0 days” would select the checkout that is in progress right now.

Stale checkout timeout (minutes)

iPaymentBaseStaleCheckoutMinutes — how long a checkout may sit in flight before the fast sweep, which runs off inbound provider webhooks, treats it as abandoned. Default 30 minutes.

This is a different job from the cleanup period above: the fast sweep clears the way for a customer retrying their own checkout, while the cleanup period collects orders nobody comes back for. Raise it for shops selling via bank transfer or Klarna, where customers legitimately take longer than half an hour.

Reading both values from a PSP module

use OxidEsales\PaymentBase\Service\NotFinishedOrderCleanupSettingsInterface;

$days    = $settings->getCleanupPeriodDays();     // always >= 1
$minutes = $settings->getStaleCheckoutMinutes();  // always >= 1

Both accessors clamp to at least 1, so a consumer never has to validate the configured value itself.

Headless checkout (GraphQL, apps)

Allowed return origins for headless clients

sPaymentBaseHeadlessReturnOrigins — the origins a headless client (a GraphQL storefront, a mobile app) may name as returnUrl or cancelUrl, i.e. the page the provider sends the customer back to after paying. See Headless Checkout (GraphQL).

  • Entries are separated by commas, spaces or line breaks, for example https://shop.example.com, https://app.example.com.

  • An origin is scheme, host and port: https://app.example.com:8443 and https://app.example.com are two entries. An entry without a scheme means https.

  • The shop’s own URL is always allowed. Empty (the default) means the shop only.

Every other URL is refused with return_url_rejected / origin_not_allowed. The list is deliberately strict: a return URL the client can choose freely would be an open redirect.

Webhooks and caller addresses

Two settings tell payment-base which address a request really comes from when the shop runs behind a reverse proxy or CDN (for example Cloudflare). Every provider’s webhook rate limit and the validation endpoint’s rate limit key on this address.

Trusted reverse proxies

sPaymentBaseTrustedProxies — the addresses or CIDR ranges of the reverse proxies in front of the shop, separated by commas or line breaks.

  • Empty (the default) means no proxy is trusted: the connecting address (REMOTE_ADDR) is the caller.

  • A proxy’s header is believed only when the request actually comes from one of the configured addresses. A visitor who sends the header directly is not believed.

Header carrying the caller’s address

sPaymentBaseClientIpHeader — the header in which the trusted proxies pass the caller’s address. The default is X-Forwarded-For; Cloudflare, for example, uses CF-Connecting-IP.

Important

Behind a reverse proxy or CDN, set both settings. Otherwise every visitor arrives with the proxy’s address and all of them share one validation budget. The checkout keeps working, but the early field feedback is skipped once the shared limit is reached.

Reading the caller’s address from a PSP module

Inject the public service TrustedProxyClientIp (namespace OxidEsales\PaymentBase\Webhook\Guard) instead of reading REMOTE_ADDR or a forwarding header yourself. If the setting store cannot be read, it trusts no proxy and falls back to REMOTE_ADDR.

Return leg

The return leg is the way back from the payment provider to the shop. One guard (ReturnAccessGuardInterface) checks it for every provider: the payment contract exists, it belongs to the calling provider, and the caller either holds a valid return token or is the contract’s shopper in the session that started the payment.

The return token is issued by ContractReturnTokenServiceInterface. It is signed with a secret of the shop’s own (table oe_payments_secrets), not derived from a provider API key.