Connect Worldpay to Magento 2 for secure card payments, 3DS support, and cleaner payment flows, so customers check out faster and you keep approval rates stable.
Worldpay publishes two Magento (Adobe Commerce) plugins: one for its Corporate Gateway (WPG), installed with Composer as sapient/module-worldpay, and one for merchants on its Worldpay eCommerce (SMB) platform. The WPG plugin offers a hosted payment page or client-side encryption for direct card capture, 3DS Flex, shopper and merchant tokens, wallets, and alternative payment methods, and each release is built for a specific Magento and PHP version. Confirm which Worldpay platform your merchant account is on, and plan Hyvä Checkout support, which Hyvä's tracker still lists as in progress.
Payment issues rarely look dramatic in dashboards – until chargebacks rise, 3D Secure gets out of sync, or a “small” gateway change suddenly breaks checkout. For Magento (Adobe Commerce) teams, the bottleneck is usually control: too much time spent reconciling orders, chasing transaction IDs, and debugging payment states across systems.
The Magento Worldpay integration connects your store’s checkout and order workflow with Worldpay payment processing, so authorization, capture, refund, and status updates follow consistent rules across Magento and your payments backend. It keeps payments tied to the right orders, supports typical Worldpay flows, and gives your team a predictable way to handle payment operations without inventing workarounds.
This setup fits if you run Magento (Adobe Commerce) and need a Worldpay payment gateway integration that behaves reliably across multiple stores, currencies, or higher order volume.
• Magento checkout requests are routed to Worldpay using hosted payment pages or direct API calls, depending on the chosen integration mode and PCI scope.
• Order, quote, customer, currency, and amount data is mapped from Magento entities to Worldpay transaction fields, including merchant account and store view context.
• Authorization results are persisted on the Magento order payment record, with Worldpay transaction references stored for capture, void, refund, and reconciliation.
• 3D Secure and risk outcomes are handled through return URLs and asynchronous webhooks, updating Magento order states and payment statuses.
• Captures and refunds initiated in Magento trigger Worldpay API requests, and response codes are validated and logged against the corresponding order and invoice/credit memo.
• Webhook events are verified (signature/secret where supported) and processed idempotently to avoid duplicate status changes during retries or delays.
.avif)
| Option | Type | Best for | Notes |
|---|---|---|---|
| Worldpay Magento 2 plugin for Worldpay Corporate Gateway (sapient/module-worldpay) | Connector | Merchants with a Worldpay Corporate Gateway (WPG) account | Published in Worldpay's GitHub repository and on Packagist, with releases matched to Magento patch versions. Features include card payments, a hosted payment page, client-side encryption for direct integration, 3DS Flex with an exemption engine, FraudSight, shopper and merchant tokens, Apple Pay, Google Pay, Samsung Pay, PayPal, Klarna, ACH Pay, MOTO orders, multi-store and multi-merchant setups, and multishipping. |
| Worldpay eCommerce plugin for Magento (SMB) | Connector | Merchants on Worldpay eCommerce (SMB) with Dashboard Portal access | Worldpay states it was developed for Magento 2.4 and needs the latest PHP version. It is installed into app/code from Worldpay's GitHub repository, uses Try and Live credentials, and can show an optional embedded checkout set up with a Checkout ID. |
| Custom Hyvä Checkout integration for the WPG plugin | Custom API | Hyvä Checkout stores that need the WPG plugin | Hyvä's checkout integration tracker lists Worldpay as in progress and the Corporate Gateway plugin as an open request with no published module yet, so plan compatibility work as part of the project. |
| Data | Direction | System of record | Timing |
|---|---|---|---|
| Card details on the hosted payment page | Shopper browser to Worldpay | Worldpay | Real time at checkout |
| Card details with client-side encryption | Encrypted in the browser, sent through Magento to Worldpay | Worldpay | Real time at checkout |
| 3DS Flex authentication and exemptions | Shopper, issuer, and Worldpay, result to Magento | Worldpay | During payment |
| Saved cards (shopper and merchant tokens) | Worldpay token referenced by Magento | Worldpay | When the shopper saves a card and on repeat orders |
| Telephone and mail orders | Magento admin to Worldpay on a MOTO merchant code | Magento for the order, Worldpay for the payment | When staff place the order |
| Recurring and subscription payments | Magento to Worldpay | Magento for the order, Worldpay for the payment | Each renewal |
| Level 2 and Level 3 data (US and Canada domestic acquiring) | Magento to Worldpay | Magento order lines | With the transaction |
Worldpay ships plugin releases per Magento patch line: the 2.4.9 releases list PHP 8.4 and 8.5, and the 2.4.8 patch releases list PHP 8.3 and 8.4. On a store still on Magento 2.4.2, the current Worldpay plugin needed a newer PHP version than that Magento release supports, so the Worldpay update waited on a Magento upgrade estimate.
Hyvä's checkout integration tracker lists Worldpay as a community item in progress and the Corporate Gateway plugin as an open request with no published compatibility module. A Hyvä Checkout store needs its own integration work or a different checkout for Worldpay.
The Corporate Gateway plugin and the Worldpay eCommerce plugin serve different Worldpay accounts, and the eCommerce plugin needs a Worldpay eCommerce account with Dashboard Portal access. Worldpay's GitHub also holds an older Magento 2.4 plugin repository that has not been updated since 2022, so check the repository date before installing.
A US subscription retailer received a Mastercard data integrity warning from Worldpay about terminal entry capability, although its Magento store took cards through Authorize.net with a CIM module. The client resolved it with Worldpay rather than in Magento.
From 2.4.7, Magento runs Content Security Policy in restrict mode on payment pages, so inline or third-party payment scripts that are not whitelisted are blocked and the checkout can render blank. Whitelist Worldpay's scripts with csp_whitelist.xml hashes or the CSP nonce provider before go-live.
We configure the Worldpay integration, map payment actions (auth, capture, refund), and validate order states end to end in staging before Go-live.
Yes – we implement and test 3DS2 flows, including challenge and frictionless scenarios, so the right authentication data is stored against each order.
Yes, we align Magento invoice, credit memo, and cancellation logic with Worldpay transaction states to avoid mismatched payments and manual reconciliation.
We audit webhooks, logs, and idempotency handling, then reproduce edge cases like retries, partial captures, and delayed notifications to pinpoint the break.
Yes – we can configure store-specific merchant accounts, currencies, and payment rules, and validate behavior per website and store view.
Yes, two. Worldpay maintains a plugin for its Corporate Gateway (Composer package sapient/module-worldpay) and a separate Magento plugin for Worldpay eCommerce merchants.
Use the release built for your Magento patch line. Worldpay's release notes list each plugin version with its Magento release and PHP versions, for example PHP 8.4 and 8.5 for the 2.4.9 releases.
Not out of the box. Hyvä's checkout integration tracker lists Worldpay as in progress, with no published compatibility module for the Corporate Gateway plugin.
Yes. The WPG plugin supports Apple Pay, Google Pay, and Samsung Pay (Visa and Mastercard only), and since the 2.4.4 release Apple Pay and Google Pay can also appear on product pages.
Yes. The WPG plugin lists MOTO (mail and telephone order) support for customer service staff, and MOTO payments can use their own merchant code for non-3DS payments.
Yes. The WPG plugin lists PayPal, Klarna (Pay Now, Pay Later, and Slice it), AliPay, and ACH Pay, and recent releases add a PayPal Smart Button on product and checkout pages.
Last updated by the scandiweb integration team.