Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module integrates Ifthenpay as a payment gateway for Drupal Commerce, supporting MB WAY, MB Multibanco, and credit card payments. It allows customers to generate Multibanco references for their orders, enabling payment through Portugal's ATM network.

Drupal Commerce payment gateways for ifthenpay, the Portuguese payment provider: Multibanco references, MB WAY and credit card payments.

Multibanco references

  • Dynamic references via the ifthenpay REST API (recommended): references are generated by ifthenpay, with order ids up to 25 characters, no hashing and no reference collisions, optional expiry and a sandbox endpoint for testing. Requires the MB Key assigned by ifthenpay.
  • Offline generation from the entity/sub-entity pair, kept for backwards compatibility and for accounts without an MB Key.
  • Automatic payment confirmation via the ifthenpay callback, with anti-phishing key validation.
  • Generated reference details are recorded in the order activity log when Commerce Log is enabled.

MB WAY

  • Payment push sent to the customer's phone at checkout.
  • Storefront repayment endpoint: customers can re-send the push for an unpaid order from their order history (CSRF-protected and flood-controlled).
  • Admin-side payment creation that triggers a real push.

Credit card

  • Redirect-based card payments through ifthenpay.

Requirements

  • Drupal 10 or 11.
  • Commerce Core 2.x or 3.x.
  • An ifthenpay account with the credentials for the payment methods you enable.

Getting started

Each payment method is a sub-module; enable only what you need. Configuration, the callback URLs to register in the ifthenpay backoffice and troubleshooting are documented in the README.

Versions

Use the 3.0.x releases (Drupal 10 and 11). The 2.x branch is no longer supported: it predates the reference collision mitigation for high order ids, a problem the 3.0.x API mode eliminates entirely.

Credits

Developed and maintained by Bloomidea.

Activity

Total releases
2
First release
Oct 2025
Latest release
2 days ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
3.0.0 Stable Jul 15, 2026
3.0.x-dev Dev Oct 27, 2025