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.