Skip to main content

Magento Plugin

The Worldline Direct Magento plugin provides comprehensive payment processing for Magento 2.4 installations, supporting 40+ payment methods through multiple integration approaches.

Features

  • Hosted Checkout Page - Redirect to Worldline's secure payment interface
  • Hosted Tokenization - Embedded card payment iframe
  • Redirect Payments - Direct payment method buttons
  • 40+ Payment Methods - Cards, wallets, bank transfers, BNPL
  • Hyvä Theme Support - Full compatibility with Hyvä themes

Requirements

ComponentVersion
Magento2.4.x
PHP7.4 - 8.4
Hyvä Theme>= 1.1.12 (optional)
Hyvä Checkout>= 1.1.15 (optional)

Prerequisites

  • Active Worldline Direct account (test or production)
  • API Key and API Secret from the Merchant Portal
  • Configured webhook endpoints

Installation

Install the complete plugin package:

composer require worldline/module-magento-payment

Complete the setup:

bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy

Option 2: GitHub

Configure the repositories:

composer config repositories.worldline/module-magento-payment \
git https://github.com/wl-online-payments-direct/plugin-magento.git
composer config repositories.worldline/module-magento-payment-core \
git https://github.com/wl-online-payments-direct/plugin-magento-core.git
composer config repositories.worldline/module-magento-payment-hostedcheckout \
git https://github.com/wl-online-payments-direct/plugin-magento-hostedcheckout.git
composer config repositories.worldline/module-magento-payment-redirectpayment \
git https://github.com/wl-online-payments-direct/plugin-magento-redirect-payments.git
composer config repositories.worldline/module-magento-payment-creditcard \
git https://github.com/wl-online-payments-direct/plugin-magento-creditcard.git

Then install:

composer require worldline/module-magento-payment
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy

Modular Installation

Install only the payment methods you need:

# Credit Card only
composer require worldline/module-magento-payment-credit-card

# Hosted Checkout only
composer require worldline/module-magento-payment-hosted-checkout

# Redirect Payments only
composer require worldline/module-magento-payment-redirect-payment

Hyvä Theme Support

For Hyvä compatibility:

composer config repositories.worldline/module-magento-theme-hyva \
git git@github.com:wl-online-payments-direct/plugin-magento-hyva.git

composer require worldline/module-magento-theme-hyva

bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy

Configuration

Connection Settings

Navigate to Stores > WORLDLINE ONLINE PAYMENTS > Connection.

SettingDescription
Environment ModeTest or Production
API KeyYour API key from Merchant Portal
API SecretYour API secret from Merchant Portal
Merchant ID (PSPID)Your merchant identifier
Environment Credentials

Never mix test and production credentials. Use test environment until fully validated, then switch to production.

Click Test Connection to verify your settings.

Webhook Configuration

Navigate to Stores > WORLDLINE ONLINE PAYMENTS > Connection > Webhooks.

SettingDescription
Allow Receiving WebhooksEnable webhook processing
Webhook URL ConfigurationAutomatic (recommended) or Manual
Additional WebhooksUp to 4 additional URLs
Automatic Configuration

The plugin automatically registers the webhook URL in the Merchant Portal when set to "Automatic" mode.

Payment Method Settings

Navigate to Stores > WORLDLINE ONLINE PAYMENTS > Payment methods.

Credit Card (Hosted Tokenization)

SettingDescription
Enable ModuleActivate card payments
TitleDisplay name in checkout
HTML Template IDTemplate for appearance
Payment ActionAuthorize & Capture or Authorize Only
Skip 3D SecureNot recommended
Request 3DS ExemptionEnable exemptions

Hosted Checkout

SettingDescription
Enable ModuleActivate all payment methods
TitlePage heading
HTML Template IDTemplate for appearance
Payment ActionAuthorization mode
Group CardsShow cards under single button
Submit Cart DataSend cart details

Redirect Payments

SettingDescription
Enable ModuleActivate redirect payments
Per-Method ConfigurationEnable/sort individual methods

Payment Actions

ModeDescriptionUse Case
Authorize & CaptureImmediate fund captureDigital goods, immediate fulfillment
Authorize OnlyFunds blocked until capturePhysical goods, ship-then-capture

For Authorize Only, capture manually via the Magento admin after shipment.

Supported Payment Methods

Cards

  • Visa
  • Mastercard
  • American Express
  • Discover
  • JCB
  • Diners Club
  • Union Pay

Digital Wallets

  • Apple Pay
  • Google Pay
  • WeChat Pay

Bank Transfers

  • iDEAL (Netherlands)
  • Bancontact (Belgium)
  • Przelewy24 (Poland)
  • Bizum (Spain)
  • EPS (Austria)
  • Giropay (Germany)

Buy Now, Pay Later

  • Klarna (Pay Later, Pay Now, Slice It)
  • Oney
  • Sofinco

Order Management

Status Updates

The plugin uses multiple mechanisms for transaction synchronization:

  1. Webhooks (Primary) - Real-time notifications
  2. GET Call Fallback - Polls if webhooks fail
  3. Cron Job Fallback - Regular status checks

Order Status Updater

Configure at Stores > WORLDLINE ONLINE PAYMENTS > Order status updater:

SettingDefaultDescription
Fallback Timeout1 minuteWait before GET calls
Fallback Timeout Limit3 hoursDuration of polling
Schedule (Cron)CustomizableExecution schedule

Amount Discrepancy Handling

For price changes during checkout, configure at Settings & Notifications > Order creation on Amount Discrepancy:

OptionBehavior
Enable: YesOrders created with "On hold" status
Enable: NoTransactions rejected

Updating

Update the complete installation:

composer update worldline/module-magento-payment \
worldline/module-magento-payment-core --with-all-dependencies

Uninstalling

Create a database backup first, then:

composer remove worldline/module-magento-payment

For complete removal including data:

bin/magento module:uninstall \
Worldline_Payment \
Worldline_PaymentCore \
Worldline_CreditCard \
Worldline_HostedCheckout \
Worldline_RedirectPayment

Debugging

Enable debug mode per payment method for detailed logging.

View logs at Stores > Settings > Configuration > WORLDLINE > Debug:

  • Debug Logs - Download or delete log files
  • Worldline Request Logs - Filter by status, endpoint, date
  • Webhook Logging - Capture webhook events

Best Practices

  1. Test First - Always test in sandbox before production
  2. Enable Webhooks - Ensure reliable order updates
  3. Keep 3-D Secure Enabled - Required in regulated markets
  4. Monitor Logs - Check for errors regularly
  5. Regular Updates - Keep the plugin updated
No Code Modifications

Plugin code modifications void technical support. Use configuration options only.

Troubleshooting

IssueSolution
Connection failedVerify API credentials and PSPID
Webhooks not receivedCheck URL accessibility and firewall rules
3DS not workingEnsure 3DS is not disabled in settings
Orders stuckCheck Order Status Updater configuration

Resources

Next Steps