LokiCheckout_WorldlineConnect
This Magento 2 module integrates the Worldline Connect payment into the LokiCheckout.
Installation
Install this package via composer:
composer require loki-checkout/magento2-worldline-connect
Next, enable this module:
bin/magento module:enable LokiCheckout_WorldlineConnect
Requirements
This module makes the payment methods of the Worldline Connect
extension (Worldline_Connect, formerly Ingenico ePayments / GlobalCollect) work in the Loki Checkout. Worldline Connect
itself does all of the communication with Worldline (payments, order creation, webhooks, refunds); this module only
replaces its Luma checkout frontend.
Configuration
Configure Worldline Connect as usual under Stores > Configuration > Sales > Payment Methods > Worldline Connect:
| Setting | Path | Notes |
|---------|------|-------|
| API endpoint | worldline_connect/settings/api_endpoint | preprod for testing, prod for live. The old sandbox endpoint (eu.sandbox.api-ingenico.com) no longer responds. |
| Merchant ID | worldline_connect/settings/merchant_id_pre_prod (or _prod) | |
| API key ID / secret | worldline_connect/settings/api_key_pre_prod, api_secret_pre_prod | Both are stored encrypted. Use the admin panel; bin/magento config:set with these paths stores them unencrypted, after which all Worldline methods disappear. |
| Webhook key ID / secret | worldline_connect/webhook/webhooks_key_id_pre_prod, webhooks_secret_key_pre_prod | Both encrypted as well. The webhook URL is https://<shop>/epayments/webhooks. |
| Order creation flow | worldline_connect/settings/order_creation_flow | Both flows are supported, see below. |
| Payment flow | payment/worldline_payment_group_card/payment_flow, payment/worldline_payment_group_redirect/payment_flow | 0 = hosted checkout (default), 1 = inline (card fields in the checkout). |
Also make sure that:
- the Magento cron is running: Worldline Connect processes webhook events and abandoned payments by cron;
- the shop runs on a real (public) hostname: Worldline refuses hosted checkouts with a return URL on
localhost.
How it works
- Order created after the payment (Worldline Connect default): when the shopper places the order, the payment is
started for the quote through Worldline Connect (
BaseCreatePaymentManagementInterface) and the shopper is redirected. Worldline Connect creates the order when the shopper returns (or when a webhook arrives). The Loki Checkout never places the order itself in this flow (PreventOrderBeforePaymentTask). - Order created before the payment: the Loki Checkout places the order, after which
RedirectResolversends the shopper to the hosted checkout (epayments/hostedCheckoutPage) or to the inline return controller (epayments/inlinePayment/processReturn, which follows a 3-D Secure redirect). - Inline payments render the payment product fields in the checkout. The bundled Worldline Connect client SDK
(
connect-sdk-client-js4.1.1, MIT license) encrypts the input in the browser; card details never reach the shop. Card groups ("Cards") detect the brand from the card number. - Saved cards (vault) are offered within the card methods for logged-in customers. The separate
*_vaultmethods of Worldline Connect are hidden, like in the Luma checkout. - Google Pay / Apple Pay open the wallet when the shopper places the order; the order is placed first, like in the Luma checkout. Apple Pay requires Safari on a domain verified with Apple.
- Hyvä: the Worldline Connect "waiting for payment" page and the success page cart refresh are replaced by versions without RequireJS.
- Payment method logos are taken from the Worldline payment products (cached for an hour).
Testing
Unit and integration tests run with Hersir. The integration tests under Test/Integration/Sandbox and all
Playwright tests use the Worldline Connect pre-production environment and are skipped without these variables
(in the environment or in .env.loki-functional-tests in the Magento root):
WORLDLINE_CONNECT_SANDBOX_MERCHANT_ID= WORLDLINE_CONNECT_SANDBOX_API_KEY_ID= WORLDLINE_CONNECT_SANDBOX_API_SECRET= WORLDLINE_CONNECT_SANDBOX_WEBHOOK_API_KEY_ID= WORLDLINE_CONNECT_SANDBOX_WEBHOOK_SECRET_KEY=
Optional: WORLDLINE_CONNECT_TEST_CARD_NUMBER (defaults to 4012000033330026).
Current status
Support
For getting support, create an Issue under the following project URL:
https://gitlab.yireo.com/loki-checkout/LokiCheckout_WorldlineConnect.git
Loki Components
The following LokiComponents are created or references in this module:
loki-checkout.payment.methods.worldline_account_to_account.form
loki-checkout.payment.methods.worldline_americanexpress.form
loki-checkout.payment.methods.worldline_apple_pay.form
loki-checkout.payment.methods.worldline_bc_card.form
loki-checkout.payment.methods.worldline_bc_card_authenticated.form
loki-checkout.payment.methods.worldline_cards.form
loki-checkout.payment.methods.worldline_cartebancaire.form
loki-checkout.payment.methods.worldline_dinersclub.form
loki-checkout.payment.methods.worldline_discover.form
loki-checkout.payment.methods.worldline_google_pay.form
loki-checkout.payment.methods.worldline_hpp.form
loki-checkout.payment.methods.worldline_hyundai_card.form
loki-checkout.payment.methods.worldline_hyundai_card_authenticated.form
loki-checkout.payment.methods.worldline_ideal.form
loki-checkout.payment.methods.worldline_jcb.form
loki-checkout.payment.methods.worldline_kb_kookmin_card.form
loki-checkout.payment.methods.worldline_kb_kookmin_card_authenticated.form
loki-checkout.payment.methods.worldline_keb_hana_card.form
loki-checkout.payment.methods.worldline_keb_hana_card_authenticated.form
loki-checkout.payment.methods.worldline_lotte_card.form
loki-checkout.payment.methods.worldline_lotte_card_authenticated.form
loki-checkout.payment.methods.worldline_maestro.form
loki-checkout.payment.methods.worldline_mastercard.form
loki-checkout.payment.methods.worldline_mastercard_debit.form
loki-checkout.payment.methods.worldline_nh_card.form
loki-checkout.payment.methods.worldline_nh_card_authenticated.form
loki-checkout.payment.methods.worldline_paypal.form
loki-checkout.payment.methods.worldline_paysafecard.form
loki-checkout.payment.methods.worldline_samsung_card.form
loki-checkout.payment.methods.worldline_samsung_card_authenticated.form
loki-checkout.payment.methods.worldline_shinhan_card.form
loki-checkout.payment.methods.worldline_shinhan_card_authenticated.form
loki-checkout.payment.methods.worldline_sofort.form
loki-checkout.payment.methods.worldline_troy.form
loki-checkout.payment.methods.worldline_troy_debit.form
loki-checkout.payment.methods.worldline_trustly.form
loki-checkout.payment.methods.worldline_unionpay_expresspay.form
loki-checkout.payment.methods.worldline_unionpay_international_securepay.form
loki-checkout.payment.methods.worldline_visa.form
loki-checkout.payment.methods.worldline_visa_debit.form
loki-checkout.payment.methods.worldline_visa_electron.form
loki-checkout.payment.methods.worldline_wero.form
Module Dependencies
The following dependencies are declared in the module its `etc/module.xml` file:
LokiCheckout_Core
Loki_Base
Loki_Components
Loki_CssUtils
Loki_FieldComponents
Magento_AdminNotification
Magento_Backend
Magento_Catalog
Magento_CatalogInventory
Magento_Checkout
Magento_CheckoutAgreements
Magento_Cms
Magento_Config
Magento_Csp
Magento_Customer
Magento_Directory
Magento_Eav
Magento_Indexer
Magento_Newsletter
Magento_Payment
Magento_Quote
Magento_Rule
Magento_Sales
Magento_SalesRule
Magento_SalesSequence
Magento_Shipping
Magento_Store
Magento_Tax
Magento_Theme
Magento_Ui
Magento_User
Magento_Variable
Magento_Vault
Magento_Widget
Worldline_Connect
Yireo_CspUtilities
Composer details
LokiCheckout_WorldlineConnectloki-checkout/magento2-worldline-connect
ext-json: *
ext-pcre: *
loki-checkout/magento2-core: ^2.0
loki/magento2-components: ^2.0
loki/magento2-css-utils: ^1.0
magento/framework: ^103.0
magento/module-customer: ^103.0
magento/module-payment: ^100.4
magento/module-quote: ^101.2
magento/module-sales: ^103.0
magento/module-store: ^101.1
php: >=8.2 <8.6
psr/log: ^1.0 || ^2.0 || ^3.0
worldline-global-collect/connect-extension-magento2: ^4.27
Releases
| 0.0.1 | 06 November 2026 |
Changelog
[0.0.1] - 29 October 2026
- Initial release