Skip to main content

Adobe Commerce (Magento 2)

MONEI Payments for Adobe Commerce (Magento 2) allows you to seamlessly integrate MONEI's payment processing capabilities into your Magento store. This official module provides a secure, reliable, and user-friendly payment experience for your customers.

Live demo

Requirements​

ComponentMinimum
Magento2.4.4 (2.4.0–2.4.3 are EOL)
PHP8.1
MONEI PHP SDK^2.16 (installed automatically via Composer)

You also need a MONEI account.

The module is published on the Magento Marketplace and on Packagist.

Before you begin​

To test your integration:

  • Connect the store with your MONEI account (see Configure). It gets its own test mode API key.
  • Set Mode to Test and save before you make a test payment. Set it at the scope you connect: a website or store view that sets its own Mode keeps it. A connect never changes the mode.
  • You can check the status of a test payment in your MONEI Dashboard → Payments (in test mode).

Install​

Go to your Adobe Commerce (Magento 2) root directory and run the following commands:

  1. Add the package to your Magento installation:
composer require monei/module-monei-payment
  1. Enable the module:
bin/magento module:enable Monei_MoneiPayment
  1. Run the following commands to upgrade and compile the module:
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
bin/magento cache:clean

The MONEI PHP SDK is pulled in transitively by Composer.

Bitnami stacks

On Bitnami Magento images, use bin/magento-cli (instead of bin/magento) and prefix each command with sudo, otherwise the commands fail with permission errors.

Configure​

To configure the extension you have to go to Stores → Configuration → Sales → Payment Methods → MONEI.

Connect with MONEI​

From module v2.6.0, the store gets its own API keys from MONEI. You never copy a key.

  1. Select the configuration scope to connect: Default Config, a website or a store view.
  2. Click Connect with MONEI. MONEI opens in a new tab.
  3. Sign in, select your account and approve. MONEI creates a Test API key at once, and a Live API key when your account is approved.
  4. The tab shows the result for each mode. Go back to the settings tab and reload it.

Connect needs HTTPS

Connect with MONEI works only when the store view has a public HTTPS secure base URL. On other stores, the page shows Use manual keys — see Enter API keys manually.

After the connect, the page shows the key in use (its last 4 characters) and a Disconnect button. Mode selects which key the checkout uses. A connect does not change Mode.

  • Live keys come after approval. When MONEI approves your account, click Connect with MONEI again to get the Live key, then set Mode to Production.
  • Apple Pay: after a connect, the module registers the domain of each store view of the scope that has Apple Pay enabled.
  • Disconnect removes the connected keys from the scope. A key stays active until you revoke it in MONEI Dashboard → Settings → API Access.

Enter API keys manually​

On a store without a public HTTPS address, or if you prefer, enter the keys yourself. Get your Account ID and API key in MONEI Dashboard → Settings → API Access. On a store that can connect, click Enter API keys manually to show the fields. The page shows the Account Id and Api Key fields of the selected Mode.

Settings​

From the configuration screen you can:

  • Set Payment Action to Sale (auth + ) or Authorize (capture later by creating an invoice). is not supported for MB Way or Multibanco and is silently downgraded to capture for those methods.
  • Enable or disable each payment method individually (Card, Card Vault, Bizum, Apple Pay / Google Pay, PayPal, Multibanco, MB Way, and the generic redirect method).
  • Enable card to let returning customers pay with a stored card via Magento Vault.

For more information on how to configure the extension, please refer to the MONEI Adobe Commerce Extension documentation.

Card field layout​

Under MONEI Card Insite, Card Field Layout decides how the card form looks.

Separate fields (default) — card number, expiry and CVC each get their own field, styled to match the theme's own inputs. Focus moves from number to expiry to CVC as the customer types.

Single field — all three share one field, which suits a compact checkout.

Json style themes both layouts from the same JSON, so switching layout keeps your styling.

Separate fields became the default in v2.3.0

Up to v2.2.4 the card form was a single field. If you never chose a layout, your checkout moves to separate fields when you update — pick Single field under MONEI Card Insite to keep the old form. A layout you already selected is kept.

Whichever you pick, card details go straight to MONEI and your PCI DSS scope stays at SAQ A.

Supported payment methods​

  • Card (Visa, Mastercard, and more) — with Magento Vault tokenization for saved cards
  • Apple Pay (domain registration is performed automatically when the method is enabled)
  • Google Pay
  • Bizum (Spain — automatically hidden for non-Spanish customers)
  • PayPal
  • Multibanco (Portugal — redirect only, no pre-auth)
  • MB Way (Portugal — redirect only, no pre-auth)
  • MONEI Flex card installments (Spain) — shown automatically on eligible card payments once MONEI Flex is activated for your account

Express checkout​

Express checkout puts Apple Pay, Google Pay and PayPal buttons on the cart page, in the mini cart and on the product page. The customer pays from the wallet sheet, and the shipping and billing address comes from the wallet, so nobody fills in the checkout form. The shipping methods and the total in the sheet are the store's own: the module recalculates them for the address the customer picks.

Requires module v2.4.0

Express checkout on all three surfaces is available from module version 2.4.0. Versions 2.3.x carried an earlier form of it on the cart, mini cart and checkout page.

To turn it on, go to Stores → Configuration → Sales → Payment Methods → MONEI → Express Checkout and set:

SettingWhat it does
Enable Express CheckoutTurns the buttons on. Off by default.
Show on Product PageButton under Add to Cart.
Show on Cart PageButtons under Proceed to Checkout in the cart summary.
Show in Mini CartButtons under Proceed to Checkout in the mini cart.
PayPal Express CheckoutAdds the PayPal button next to the wallet button. Needs the PayPal payment method enabled. On by default.
Json styleThemes the buttons in JSON — for example {"height":"45px"}.

The same conditions as the regular payment methods apply. Apple Pay needs your domain registered, and the Apple Pay or Google Pay button only appears for a customer whose device and browser can pay with that wallet. A wallet order shows in Sales → Orders under the express payment method; a PayPal express order under the PayPal method.

For the equivalent in a custom integration, see Express checkout.

Before you go live​