How Mollie payments fit into a Drupal Commerce store
Mollie connects to Drupal Commerce as a payment gateway through a contributed module or a custom payment plugin, and the store stays in sync with Mollie through Mollie's API and webhooks. The Commerce payment gateway plugin creates the payment, redirects the shopper to the chosen method, and then relies on server-side callbacks to confirm the final state before the order moves forward. Before choosing any method, confirm on Drupal.org which Mollie gateway module is actively maintained for your Drupal core and Drupal Commerce versions, because a module that lags behind either one changes the build and upkeep work. Drupal and contributed modules hosted on Drupal.org are licensed under GPL-2.0-or-later, and there is no paid edition of Drupal itself (see the Drupal.org licensing page). The software is free, so the cost sits in the gateway configuration, the checkout testing, the order-state logic and the ongoing maintenance of those pieces.
Two decisions shape the build. The first is whether Mollie runs alongside your current gateway or replaces it. Running both means the checkout must offer the right methods per market and currency, and reports must reconcile payments from two providers. Replacing the current gateway means migrating stored payment references and handling open orders during cutover. The second decision is the webhook design: the store must accept Mollie notifications on a public endpoint, verify them against Mollie's API rather than trusting the request body, and handle duplicate or late notifications without creating duplicate orders or double captures. Confirm with your gateway module how it maps Mollie payment statuses to Commerce payment states, and which fields it writes to the order.
Plan the upkeep as carefully as the build. Drupal releases follow a published schedule: bugfix releases arrive on the first Wednesday of each month and security releases on the third Wednesday, and Drupal 10 reaches end of life on December 9, 2026 (see the Drupal core release schedule). Each core upgrade can break a gateway module, so ask any partner for a written test plan covering a test-mode payment, a successful live refund, a failed payment and a webhook replay in a staging environment before each upgrade. The quote should separate the one-time gateway build from the recurring testing and module maintenance.
What a Mollie integration needs before the build starts
Six items need to be in place before anyone writes integration code, and most of them can be worked on in parallel. Several of them, including PHP version and the gateway module status, decide whether the build can start at all, so confirm them first.
Drupal core and PHP version
Pick the Drupal core line before choosing the gateway module, because contributed modules target specific core releases. Drupal 11 requires PHP 8.3 or later, and Drupal 10 requires PHP 8.1 or later. Drupal 10 reaches end of life on December 9, 2026, so a new build on Drupal 10 would need an upgrade plan from the start. Check the PHP version on the server before the build, not after.
- Drupal 10 end of life
- Dec 9, 2026
Web server and database
Drupal runs on Apache or Nginx, with MariaDB, MySQL, PostgreSQL or SQLite as the database. Confirm which combination your operations team supports, along with the versions they patch and back up. Decide early because the database engine affects backups, failover and how the payment callback logs are stored.
System requirementsSupported Drupal Commerce installation
Install Drupal Commerce on a release line that matches your Drupal core version and that the Commerce maintainers still support. Payment gateway modules depend on the Commerce payment and order APIs, so a version mismatch often shows up only during checkout testing. Record the exact Commerce and core versions in your build notes.
Mollie account with test and live keys
Create the Mollie account and confirm which payment methods your business is approved to offer in each market. Obtain separate test and live API keys, and keep them out of the codebase and out of shared configuration exports. Ask Mollie which methods need additional onboarding, because approval timing is outside your build plan.
Public HTTPS endpoint for webhooks
Mollie sends payment status updates to a webhook URL that must be reachable from the public internet over HTTPS. Staging and local environments need a routable address or a tunnel for testing. Plan the firewall rules, TLS certificate renewal and any reverse proxy path so that webhook traffic is not blocked by a login or maintenance page.
Gateway module status on Drupal.org
Check the Mollie gateway module's Drupal.org page for a stable release that supports your Drupal core version, recent commits, open issues and the date of the last release. Do not assume it is maintained because it appears in search results. Confirm this with the module maintainers or in your own test environment before you commit the build plan.
Drupal.org project pagesChoosing Mollie or another gateway by market and currency
A store that sells to shoppers in one country and prices everything in that country's currency has the simplest gateway decision. The main question is which local methods shoppers already use at checkout, and whether Mollie offers them for that market and currency. Mollie's method list depends on the country and changes over time, so the method you need must be confirmed in its current documentation before you design the checkout around it.
- Local methods first: List the three or four methods your shoppers use most, such as bank transfers, cards, or local wallets, and check each against Mollie's current coverage for your country.
- Settlement currency: When the store and the settlement account use the same currency, reconciliation is direct and currency conversion does not enter the accounting.
- Single gateway is often enough: One well-supported gateway can cover the market, which keeps refund handling, webhooks and reconciliation in one place.
- Second gateway case: Add Stripe or PayPal only when a method your shoppers expect is missing from Mollie for that market, or when a subscription or wallet flow is a core requirement.
- Fees and terms: Pricing is set by each provider's contract, so request the per-method fees in writing before comparing gateways.
Confirm the method list and settlement currency for your country in Mollie's documentation and in your merchant agreement before the checkout design is final.
A store that sells across several EU countries and prices in euros meets a different problem. Shoppers in each country expect their own local methods, such as bank transfer variants, direct debit or local wallets, while the settlement stays in one currency. The gateway choice is usually about method coverage per country rather than about currency conversion.
- Per-country method lists: Build a table of each target country with the methods shoppers expect there, then check every row against Mollie's current country coverage.
- One euro settlement: Pricing and payouts in euros keep reporting simpler across markets, which matters for VAT and bookkeeping.
- Method gaps: If a country needs a method Mollie does not cover in your plan, a second gateway can handle that market only, and the checkout must route by country.
- Routing complexity: Each added gateway needs its own webhooks, refund rules and reconciliation feed, so keep the second gateway limited to markets that need it.
- Tax and invoicing: Confirm with your tax adviser how cross-border EU sales are invoiced, since the gateway does not decide those obligations.
Confirm each target country's method coverage and euro settlement terms in Mollie's current documentation before you publish country-specific checkouts.
A store that sells to shoppers outside the EU or prices in a non-euro currency faces currency conversion, different local expectations and sometimes a different settlement account. Mollie's currency and country support for these cases must be checked directly, because coverage for non-euro currencies and for non-EU shoppers is not assumed here. This is the situation where a second gateway is most often needed.
- Currency support: Confirm which presentment currencies Mollie accepts for your account and which currencies it can settle to your bank account.
- Conversion and FX margin: Ask whether conversion happens at the gateway, at the bank, or in your accounting, and what margin applies, because it changes the effective price shoppers see.
- Shopper expectations: Shoppers outside the EU often expect card brands and wallets that are not local to Europe, so check whether Mollie covers them for your markets.
- Second gateway case: Run Stripe or PayPal beside Mollie when a non-euro market needs a method or currency that Mollie does not cover for your account.
- Refunds across gateways: Refunds and chargebacks must be recorded against the gateway that took the payment, so plan the order data model for that from the start.
Confirm supported currencies, settlement currencies and shopper method coverage with Mollie for your specific account before you promise any market to customers.
How to configure Mollie in Drupal Commerce, step by step
This sequence takes a Drupal Commerce store from an unconfigured gateway to a verified live Mollie setup, with each stage closed by a check the team can record. It is designed so that test evidence exists before any real customer money moves.
Install and confirm the gateway module
A developer installs the Mollie integration for Drupal Commerce through Composer, or confirms that an existing custom payment plugin is present and compatible with the installed Commerce version. Confirm the module's release notes against your current Drupal core and Commerce versions, and check that the site's PHP version meets the core requirement for your Drupal release. The step is done when the module enables without errors on a staging copy and the payment gateway type appears in the gateway list.
Create the gateway with test keys
An administrator creates a Mollie payment gateway in Commerce configuration using test API keys from the Mollie dashboard, and stores those keys through your secrets process rather than in exported configuration. Choose the gateway's mode as test and save it. The step is done when the gateway saves, shows test mode, and a sandbox connection check reports a successful API response.
Set currencies and enabled methods per store
Working with the store owner and finance team, list each store, its currency and the European markets it sells into, then enable only the payment methods that Mollie offers for that market and currency in the gateway's method settings. Confirm the availability of each method with Mollie for your merchant account, since methods depend on country, currency and account configuration. The step is done when a written matrix of store, currency and enabled method exists and matches what checkout displays for test addresses in each market.
Configure return and webhook URLs
The developer sets the return URL that customers reach after completing or abandoning a payment, and the webhook URL that Mollie calls when payment status changes, using the public domain of each store. Confirm both URLs are reachable over HTTPS from outside your network, and that the Mollie dashboard points to the same addresses. The step is done when a test status change in Mollie reaches the site and is logged, and the customer's return lands on the correct order.
Run a test payment through each method
A tester places an order for each enabled method and currency pair on the staging site, completing the Mollie test flow for successful, failed and cancelled outcomes where the sandbox allows. For each case, check the order state, payment record, and any stock or notification effects. The step is done when a recorded test log shows the expected order and payment state for every method and outcome in the matrix.
Switch to live keys after test checks pass
Once every test case in the matrix passes and the webhook and return flows are confirmed, the administrator replaces the test keys with live keys stored through the same secrets process and switches the gateway to live mode. Review the change in configuration management so the mode switch and key reference are traceable. The step is done when the gateway shows live mode, the approval record names who signed off, and the change is in version control or your change log.
Confirm order and payment state with a real transaction
Place one real, low-value order in each live market you launch, and confirm that Mollie reports the payment, the webhook updates the Drupal order, and the accounting or fulfillment system receives the right state. Refund the transaction as part of the check if your policy allows it. The step is done when the reconciliation between the Mollie dashboard, the Commerce order and your finance records matches for every test transaction.
Test every core and module upgrade against this setup
Before any Drupal core, Drupal Commerce or Mollie module update reaches production, the team reruns the test matrix and one live-mode smoke check on a staging copy that uses the same gateway configuration. Record the results alongside the release notes so that the next upgrade starts from known behavior. The step is done when the upgrade checklist includes the payment matrix and the owner has signed off on the staging results.
How a Mollie payment moves between the shopper, Drupal Commerce and Mollie
The flow starts when the shopper submits checkout and Drupal Commerce creates a payment with Mollie, which returns a hosted payment page. The shopper pays on Mollie's side, then returns to the store, while Mollie separately sends a webhook to the Drupal site. The key check is at the webhook endpoint: Drupal should ignore the status in the payload and fetch the payment from Mollie's API before it updates the Commerce payment and order. Confirm the exact module and endpoint behavior in your own build.
Payment creation, hosted checkout, return and verified webhook status update.
How Mollie payment states and fields map to Drupal Commerce
This table compares each Mollie object or field with the Drupal Commerce entity or field it corresponds to, the direction the data moves, and who owns the value. Read it as a design checklist before you write any custom code, and confirm exact status values and field names in Mollie's API documentation and in the gateway module you choose.
| Mollie object or field | Drupal Commerce entity or field | Direction of sync | Owner |
|---|---|---|---|
| Payment status (open, pending, paid, failed, expired, canceled) | Commerce payment state (for example, completed, failed, voided) | Mollie to Drupal, via webhook and return fetch | Gateway module; confirm mapping in its code |
| Amount and currency | Commerce payment amount and currency code on the order total | Written at creation, checked on return and webhook | Shop; must match the order total exactly |
| Order reference or metadata | Order ID stored in the Mollie payment metadata, used to load the order | Drupal to Mollie at creation, read back on webhook | Shop build team; define the format before go-live |
| Payment method (for example, iDEAL, Bancontact, SEPA Direct Debit) | Commerce payment gateway plugin and payment method instance | Mollie to Drupal for display and reporting | Merchant configures enabled methods in Mollie; shop maps them to checkout |
| Refund amount and status | Commerce refund payment record linked to the original payment | Drupal to Mollie to start; Mollie to Drupal for status | Shop operations; refunds should be issued from a single system of record |
| Shopper locale | Customer locale or site language at checkout | Drupal to Mollie when the payment is created | Shop; confirm which locales the chosen methods support |
| Customer and billing address | Order billing profile | Drupal to Mollie at creation | Shop; limit what is sent to what the method needs |
Security controls for Mollie on a Drupal Commerce site
A Mollie integration moves card and wallet data to a hosted page, but the store still handles API keys, webhooks, refunds and logs. These six controls cover the points where a Drupal Commerce site can still expose money movement or payment data, and each one needs an owner and a check.
Separate test and live API keys
Mollie issues separate test and live API keys, and a store that mixes them can send real charges from a staging site or expose live credentials in a development environment. Keep each key in environment configuration or a secrets manager outside the database and version control, with a different key per environment. Confirm that exported configuration and database backups do not contain the live key, and that developers cannot read it from the admin interface.
Verify webhooks against Mollie
A webhook tells the store that a payment changed, but the request itself can be forged or replayed. Before updating an order, the module should fetch the payment from Mollie's API using the payment ID and act only on the status Mollie returns. Test this with a forged request that carries a valid-looking payment ID and a status of paid, and confirm the order does not change.
Restrict and harden the webhook route
The webhook route should accept only the HTTP method Mollie uses and reject everything else with a clear error. Repeated deliveries are normal, so the handler must be idempotent: a second notification for a completed payment should not create a second payment, capture or shipment. Check the route's access settings, rate limits at the reverse proxy, and how the handler behaves when Mollie's API is slow or unavailable.
Keep card data on the hosted page
Decide early which payment data the store touches. With Mollie's hosted payment pages, card numbers and wallet credentials are entered on Mollie's pages, which keeps most PCI DSS requirements with the payment provider and the store's scope limited to its own systems. Any custom checkout that collects card fields, or logs request bodies that contain them, moves that scope back onto the store. Document the decision and check it during the design review, with your assessor if you have one.
Limit who can issue refunds
Refunds reverse money and should not be available to every user who can edit orders. Create a dedicated Drupal role for refund actions, separate it from order editing and from the role that manages the gateway configuration, and check that the refund operation is blocked for other roles in the admin interface and on direct routes. Ask your team which approval step applies to refunds above a set amount, because the module does not set that policy for you.
Log events without secrets
Payment logs are useful for reconciliation and disputes, but a full webhook payload or an API response can contain customer details or credentials. Log the payment ID, order ID, status transition, timestamp and the result of the API fetch, and leave out the API key, full request bodies and personal data. Set a retention period for these logs that your privacy policy supports, and confirm that Drupal's database logging and any external log shipper apply the same filter. Keep patching in the same routine: follow the Drupal Security Team advisories for the Commerce gateway module and for Drupal core, and schedule updates on the cadence set by the core release schedule.
Security Team advisoriesHow to test Mollie payments before going live
Test every enabled payment method in every store and currency before launch, because a method that works in one market can fail in another. For each combination, run a successful payment, a failed payment, a cancelled payment and an abandoned checkout in Mollie's test mode, and confirm the order state, payment state and customer message match after each one. Then test the return path when the shopper closes the browser on the Mollie payment page before returning to the store. The order should still reach the correct state once Mollie reports the outcome, and the shopper should not be able to pay twice for the same cart. Confirm the exact order total is sent to Mollie and that the amount, currency and order number recorded in Mollie match the Drupal Commerce order to the cent, including any tax, shipping or discount lines.
Test webhooks separately from the browser return, since the webhook is what updates the order when the shopper never comes back. Replay the same Mollie webhook several times for one payment and confirm the order is updated once, with no duplicate payment records, duplicate emails or repeated stock movements. Then run partial and full refunds on test payments, checking that the refund amounts, order balance and any accounting export all agree. Ask your implementation partner to document which Drupal Commerce payment gateway settings, webhook URL and API key environment each store uses, so the test results can be traced back to a known configuration.
Schedule the same test set as a recurring check, not only before launch. Drupal core and contributed module updates ship on a fixed calendar, with security releases on the third Wednesday of the month according to the Drupal core release schedule, so align a regression run with those windows and with any Commerce or Mollie module update. A payment flow that passed in March can change behavior after a routine update, and the only way to catch that is to repeat the checks against a staging copy of the live configuration. Confirm with your team who owns the test sign-off and how results are stored as evidence for your finance and compliance reviewers.
Common Mollie failures in Drupal Commerce and how to fix them
This table pairs each common Mollie failure in Drupal Commerce with its likely cause and a check the team can run before changing code. Read each row as a triage starting point, then confirm the cause in your own logs and Mollie dashboard. The main takeaway is that most failures trace back to webhooks, amounts, or method eligibility, so those are the first places to look.
| Symptom | Likely cause | Fix and check |
|---|---|---|
| Orders stay pending after the shopper has paid | The Mollie webhook never reached Drupal, often because the callback URL is unreachable from the internet, blocked by a firewall or WAF, or points at a staging host. | Confirm the webhook URL in the Mollie dashboard, then check the web server access log for POST requests to the payment callback route. Replay a test payment and verify the order transitions to paid. |
| Duplicate orders or repeated status changes | Mollie retries webhooks that do not receive a timely success response, and the handler does not check whether the payment was already processed. | Make the webhook handler idempotent by keying on the Mollie payment ID and skipping state changes for payments already recorded. Check the Drupal log for repeated entries with the same payment ID. |
| A payment method is missing for some shoppers | The method is not enabled for the store country, the order currency, or the amount range in the Mollie profile, or the method is not activated for the account. | Compare the shopper's billing country, order currency and total against the method's eligibility in the Mollie dashboard. Test checkout from each target market before launch. |
| Mollie amount differs from the Commerce order total | Rounding, tax or shipping adjustments were added in Commerce after the payment request was built, or the currency code was passed in the wrong format. | Compare the Commerce order total with the amount and currency on the Mollie payment object for a sample of orders. Build the payment request from the final order total only after adjustments are complete. |
| Shopper returns to a cancelled or expired order | The redirect return handler treats any return as success, or the order was not moved back to a cart-compatible state after the payment was cancelled or expired. | Fetch the payment status from Mollie on return instead of trusting the URL. Test cancel and abandon paths and confirm the order can be retried or is released as intended. |
| Refund in Mollie does not update the Commerce payment | Refunds were issued directly in the Mollie dashboard and no refund webhook or reconciliation step writes them back to Commerce. | Decide where refunds originate and document it. Run a test refund and confirm the Commerce payment record and balance update. Reconcile Mollie refunds against Commerce totals at month end. |
| Gateway module fails after a Drupal core or PHP upgrade | The contributed Mollie module or its Mollie API client library has not been updated for the new Drupal core or PHP version, or a deprecated call breaks at runtime. | Check the module's supported core and PHP versions on its Drupal.org page before upgrading, and run Upgrade Status and the module's tests in a staging copy. Pin and test the Mollie client library version as part of the release. |
Questions buyers ask before building Mollie payments in Drupal Commerce
What drives the cost of a Mollie integration in Drupal Commerce?
The biggest drivers are whether a maintained contributed gateway module covers your needs or a custom payment plugin must be written, how many markets, currencies and payment methods you accept, and how much refund, reconciliation and reporting work sits behind the checkout. Each one adds build, test and review effort. Costs fall into one-time work (scoping, configuration, custom code, testing, go-live support) and recurring work (module updates, monitoring, and fixes after Drupal core or PHP upgrades). Ask any partner for a written scope that lists each market, currency and method, names the module or plugin being used, and states what is excluded, such as accounting exports or ERP sync. DeployOpen does not publish prices, so a quote follows from that written scope.
Should we use a contributed gateway module or write a custom plugin?
Use a maintained contributed module when it supports the Mollie methods, currencies and flows you need, because upgrades and security fixes are then shared with the community. Write a custom plugin only when a required flow, such as an unusual refund rule or a specific order state change, is missing. Check the module's Drupal.org page for the Drupal core versions it supports, its release history, and open issues on the features you rely on. Every custom line of payment code becomes something your team or partner must test and maintain through each upgrade, so the choice should be recorded in the written scope.
How long does a Mollie integration take to build and go live?
Duration depends on the number of markets and currencies, the number of payment methods, whether custom code is needed, how many systems receive payment events, and how long your test window and approvals take. A single-market store with a supported module is a smaller job than a multi-country store with custom refunds and ERP posting. No standard duration applies to every store, so ask for a timeline in the written scope with milestones for configuration, testing, and go-live, and make sure the client-side dependencies in that plan are dated.
What must our team provide before the integration work starts?
Plan to provide four things. First, access to your Mollie account with the right permissions, and a decision on which methods and currencies to enable. Second, a list of store currencies and the markets each one serves, with the tax and shipping rules that apply. Third, a public HTTPS endpoint on your Drupal site, so Mollie can send webhook notifications back to it, with a valid certificate and no blocking firewall rules. Fourth, a defined test window with staff who can run sample orders, refunds and failed payments. Confirm the Mollie test setup and webhook behavior with Mollie's current documentation, since those details can change.
Can our in-house Drupal team build the Mollie integration ourselves?
Often yes, if your team already runs Drupal Commerce in production and has someone who has built a payment integration before. The work involves module configuration, order and payment state handling, webhook security, testing across payment outcomes, and documenting the setup for audit. Check whether your team has capacity for the test window and for reviewing payment-related code. A partner adds value mainly through an independent review, a written scope, and a handover that your staff can run. Both paths should end with the same deliverables: configuration records, test evidence and an operations runbook.
Who maintains the Mollie integration after Drupal core and PHP upgrades?
The site owner remains responsible, whether the work is done in-house or by a partner. Drupal core and PHP upgrades can break contributed modules or custom plugins, so each upgrade needs regression tests on checkout, webhooks, refunds and reconciliation. Drupal 10 requires PHP 8.1 or later, Drupal 11 requires PHP 8.3 or later and Drupal 12 requires PHP 8.5 or later, so a PHP upgrade can happen in the same window as a core upgrade. Agree in writing who owns module updates, who runs the test suite, and what response time applies to payment failures. Ongoing support and upgrades are available as retainers, and their scope should be stated in the same written agreement.
What security and compliance questions should we answer before go-live?
Confirm how the integration handles payment data so your PCI DSS scope stays as small as possible. Most Mollie flows redirect customers to hosted payment pages, which keeps card data off your servers, but your team should verify that with the chosen module and flow. Check webhook verification, API key storage, access to the Mollie dashboard, logging that avoids storing sensitive data, and how refunds are authorized. Ask for these checks in the written scope and keep the evidence, because assessors will ask for it. DeployOpen prepares systems and evidence for compliance assessments, but it does not issue audit reports or certifications.
How DeployOpen scopes and delivers a Mollie integration
DeployOpen plans, builds, documents and supports Drupal Commerce payment setups inside infrastructure you control. Each Mollie engagement starts from a written scope that matches your target markets, currencies, payment methods and compliance obligations, so your team knows what is delivered before work begins.
How we scope
- Map target countries, currencies and the European payment methods your checkout must offer
- Confirm which Mollie profile, API keys and environments the client will own and administer
- Agree written deliverables, acceptance tests, responsibilities and timelines before any build starts
- Record which payment data stays on your side and which flows touch only hosted Mollie pages
How we build
- Install and configure the contributed Drupal Commerce payment modules for Mollie in your environment
- Map payment statuses, refunds and webhook callbacks to order states in your Commerce workflow
- Test checkout, failed payments, cancellations and refunds in a staging environment before release
- Configure secrets handling so API keys stay out of code, exports and version control
How we hand over
- Deliver a configuration record covering gateways, payment methods, currencies and order state mappings
- Write runbooks for webhook failures, reconciliation checks and refund procedures your staff will use
- Walk your team through test evidence and the list of open decisions for your compliance reviewers
- Provide the scope record so future changes can be priced against a known baseline
How we support
- Offer ongoing support, module upgrades and continuous testing as a retainer after launch
- Review Drupal core and module releases against your Mollie integration before you apply them
- Confirm with your payment and compliance teams which controls and evidence they need from the integration
- Ask for a quote built from the written scope, including what recurs and what is one-time

