Mastercard Payment Gateway (MPGS / MIGS) - Hosted Checkout, 3-D Secure, Refund | Mastercard Gateway
by Modvanta https://modvantaapps.tech/odoo-apps/payment-mastercard-gateway/$ 38.89

Mastercard Payment Gateway (MPGS) for Odoo 19
Accept cards through Mastercard Payment Gateway Services, the gateway many banks give their merchants (formerly MIGS), in Odoo eCommerce, the customer portal, invoices and payment links. Cards are entered on the gateway Hosted Checkout with 3-D Secure; capture, void, refunds and saved cards work from standard Odoo screens.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
The module adds "Mastercard Gateway" as an Odoo payment provider. When a customer pays, Odoo opens a Hosted Checkout session on the gateway and sends the customer to the gateway payment page (or shows the gateway card form embedded in a page of your website). After the payment, Odoo reads the order from the gateway and confirms, authorizes or declines the transaction. Webhook notifications signed with your notification secret keep Odoo up to date even when the customer closes the browser.
Who it is for: Merchants whose bank or acquirer runs on the Mastercard Gateway (MPGS): many banks in the Middle East, Africa and Asia (UAE, Oman, Qatar, Egypt, Jordan, Kenya, Nigeria, Sri Lanka, Bangladesh, Pakistan and more). Any bank-branded host is supported.
Why merchants pick it
Built on the Odoo 19 payment framework, following the public Mastercard Gateway API (version 100).
Hosted Checkout, two ways Redirect to the gateway Payment Page, or show the Embedded Page on your website. Card data never touches your server. | 3-D Secure under your control Use the gateway default, make 3-D Secure mandatory or bypass it, per provider. | Authorize, capture, void Charge at once or only authorize; capture all or part later, or void the authorization, from the transaction. |
Refunds from Odoo Full and partial refunds from the payment or the transaction, sent to the same gateway order. | Saved cards Customers save their card on the gateway (Credential on File token) and later orders and invoices are charged with it. Removing a card deletes the token. | Any bank host, Arabic included Pick a Mastercard region or type the host your bank gave you. The checkout follows the visitor language; Arabic translation included. |
Key features
Initiate Checkout session per payment (PURCHASE, AUTHORIZE or VERIFY) Payment Page (redirect) or Embedded Page display Return URL check: resultIndicator compared with the session successIndicator Outcome always read with Retrieve Order, never trusted from the browser Amount and currency of the gateway order checked against Odoo Webhook endpoint with X-Notification-Secret check (HTTP 403 otherwise) 3-D Secure: gateway default, mandatory or bypass Manual capture: full or partial captures, void of the authorization Full and partial refunds, pending refunds finished by webhook Saved cards with gateway tokens; customer- and merchant-initiated payments | Saved card deleted on the gateway when the customer removes it Test mode uses the TEST merchant profile and its own API password Regional hosts (Asia Pacific, Europe, North America, MTF) or a bank-specific host Order id prefix so several databases can share one merchant profile Customer e-mail, name, phone and billing address prefilled Receipt number and authorization code on the transaction and payment message Recovery job every 10 minutes for customers who never came back API log with masked password and tokens, connection test button Card brand detected from the gateway (Visa, Mastercard, Amex...) Arabic translation of the checkout and back-office texts |
Pay at checkout
Mastercard Gateway appears with your other payment methods in the Odoo 19 eCommerce checkout; customers can tick "save my payment details".

Secure payment page
Odoo opens the gateway Hosted Checkout session and starts the bank payment page (or shows the embedded card form). Card details are typed on the gateway only.

Credentials and webhook
Gateway region or bank host, merchant id, API password, test API password and notification secret. The webhook URL is ready to paste in Merchant Administration.

Hosted Checkout options
Payment Page or Embedded Page, 3-D Secure policy, name shown on the payment page, customer data, order id prefix and log retention.

Authorized payment: capture or void
Gateway order id, transaction id, order status, card, authorization code, receipt and 3-D Secure status on the transaction, with Capture and Void buttons.

Refunds
A partial refund sent to the same gateway order, with its own gateway transaction id and result.

Declined payments
The gateway code and acquirer message are kept on the transaction and shown to the customer.

API log
Every gateway call and webhook notification, with masked password and tokens.

How it works
1 | Install and configure Open Invoicing / Website > Configuration > Payment Providers > Mastercard Gateway, choose your gateway region or bank host, enter the merchant id and API password. |
2 | Connect the webhook Copy the Webhook URL into Merchant Administration > Admin > Webhook Notifications and paste the notification secret into Odoo. |
3 | Test Keep the provider in Test mode: Odoo uses your TEST merchant profile. Press Test Connection, then pay an order with the gateway test cards. |
4 | Go live Switch the provider to Enabled and publish it. Use Capture Amount Manually to authorize only, and capture from the order or transaction. |
Settings
| Gateway / Gateway Host | Regional Mastercard host or the host your bank gave you. |
| Merchant ID | Your merchant id; TEST is added automatically in Test mode. |
| API Password / Test API Password | Integration passwords of the live and TEST profiles. |
| Notification Secret | Secret checked on every webhook notification. |
| API Version | REST API version, 100 by default (63 or later). |
| Hosted Checkout Display | Payment Page (redirect) or Embedded Page. |
| 3-D Secure | Gateway default, mandatory or bypass. |
| Name on the Payment Page | Defaults to the company name. |
| Send Customer & Billing Address | Prefill e-mail, name, phone and billing address. |
| Order ID Prefix | Keeps order ids unique when several databases share a profile. |
| Capture Amount Manually | Standard Odoo option: authorize only, capture later. |
FAQ
Compatibility and support
Odoo 19 Community and Enterprise, on premise and Odoo.sh. Depends only on the standard payment and account_payment modules; eCommerce, portal, invoices and payment links use it automatically.
Questions, installation help or a feature request: write to modvantaapps@gmail.com.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1355 |
| Technical Name |
mdv_payment_mastercard_gateway |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/payment-mastercard-gateway/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module