The Open Payment Framework (OPF) is a PSP(Payment Service Provider)-agnostic payment orchestration layer for SAP Commerce Cloud. It provides a unified integration model for payment service providers, handling authorization, capture, refund, and tokenization through a single API regardless of the underlying PSP. The following enhancements span security, tokenization, transaction processing, Commerce platform integration, deployment options, and developer experience.
Exploring Open Payment Framework Enhancements
Objective
Overview
Payment Security Hardening
OPF has introduced several security enhancements for service communication and payment flows. mTLS is now supported for service-to-service API communication, using certificate-based mutual authentication to ensure both the client and server verify each other's identity — eliminating reliance on shared secrets or bearer tokens. Provision client certificates for your OPF integration, configure the trusted CA chain, and test certificate rotation procedures before go-live.
On the redirect side, URL allowlisting restricts post-payment redirect targets to a configured list of approved domains, preventing open redirect vulnerabilities. Additionally, HTML, JavaScript, and CSS can now be configured separately for payment authorization scripts, enabling stricter per-type Content Security Policy settings rather than a single permissive policy covering all script types.
Access to OPF API Swagger documentation is now restricted to authenticated tenant users only. Ensure developers who need Swagger access have valid tenant credentials, and update any automated tools referencing the Swagger endpoint to include authentication headers.
Mutual Transport Layer Security (mTLS) Authentication Method
Redirect URL Allowlist Configuration
Separate Script Configurations for Content Security Policy (CSP)
Payment Tokenization and Stored Credentials
OPF now supports PSP-managed payment tokenization, enabling secure storage and reuse of customer payment details through tokens rather than raw card data — a PCI DSS scope reduction mechanism that removes the merchant from PCI data storage scope. 3DS authentication data can also be stored and mapped alongside tokens to support Merchant-Initiated Transactions (MIT) such as subscriptions and delayed captures, enabling compliant MIT processing across PSPs. Enable 3DS data storage for all flows that may require MIT processing and verify your PSP accepts the stored data format.
A migration cronjob is available to transfer existing saved payment tokens from legacy SAP Commerce Cloud payment storage to OPF, mapping legacy token structures to the OPF format in batches. Schedule the migration during the cutover window and monitor logs for errors — tokens that fail migration must be handled individually.
Transaction Processing and Gateway Management
Several enhancements expand transaction processing flexibility. Authorization amounts can now be adjusted in-place before capture without cancelling and re-authorizing — OPF calls the PSP's adjustment endpoint with the new amount while retaining the original reference. PSP support varies, so add capability checks to fall back to cancel-and-reauthorize where needed. Payment transactions authorized directly with a PSP outside of OPF can now be registered in OPF for unified capture and refund processing, supporting mobile SDK payments, in-store payments, and other direct-authorization flows.
For hybrid payment architectures, PSP tokens can be transferred to secondary payment systems after authorization to support settlement and downstream processing — enterprises that authorize via a primary PSP but settle through ERP or treasury can now do so without re-authorization. Multiple payment gateway configurations can also be assigned to the same storefront, with gateway selection via an explicit configuration ID and conflict detection for Quick Buy scenarios.
Intelligent Payment Routing provides a rule-based engine that dynamically controls which payment integrations, alternative payment methods, and card types are presented at checkout. Administrators define routing rules that evaluate conditions against checkout context data — such as cart total, currency, customer group, and delivery country — replacing hard-coded payment availability logic with a flexible, maintainable approach.
Support for Authorization Adjustment
Support for Externally Authorized Transactions
Transaction Exchange for Hybrid Payment Processing
Commerce Payment Integration
The commerceservices layer now supports payment tokenization and gift card payments via OPF. Gift card support enables one or more gift cards at checkout with full, partial, and split payment handling, with real-time balance validation against the gift card system. Test split payment scenarios (gift card + credit card) thoroughly.
The opffacades extension includes new split payment extension points for marketplace and multi-party payment allocation, while opfservices adds per-consignment payment capture actions for incremental payment collection as each part of an order ships. Review the SPI contract for split payment and implement calculation logic appropriate to your marketplace model. Wire consignment capture actions into your order fulfilment process definition.
Lesson Summary
- mTLS, redirect URL allowlisting, per-type CSP configuration, and authenticated Swagger access strengthen OPF security posture.
- PSP-managed tokenization with 3DS data storage enables PCI scope reduction and compliant Merchant-Initiated Transactions; a migration cronjob transfers legacy tokens to OPF.
- Authorization adjustment, external transaction registration, token exchange for hybrid architectures, multi-gateway support, and intelligent payment routing expand transaction processing and checkout flexibility.
- The commerceservices layer now supports tokenization and gift card payments; split payment extension points and per-consignment capture support marketplace scenarios.