BML Connect Payment Gateway - Bank of Maldives Payment | Maldives Payment Gateway MVR
by Modvanta https://modvantaapps.tech/odoo-apps/payment-bml-connect/$ 48.86

BML Connect Payment Gateway for Odoo 19
Accept payments through BML Connect, the Bank of Maldives merchant gateway, in Odoo eCommerce, the customer portal, invoices and payment links. Customers pay on the BML payment page in MVR or USD; Odoo confirms every payment with the BML API and signed webhooks, and keeps saved cards for later charges.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
The module adds BML Connect as an Odoo payment provider. When a customer pays, Odoo creates a BML Connect transaction and sends the customer to the BML payment page, where they pay with a card or another payment method enabled on your BML merchant account. When the customer comes back, and whenever BML sends a webhook, Odoo reads the transaction from the BML API and confirms, authorizes or declines the payment.
Who it is for: Shops, hotels, resorts and service companies in the Maldives with a Bank of Maldives merchant account and BML Connect access, selling in Maldivian rufiyaa (MVR) or US dollars.
Why merchants pick it
BML payment page Customers pay on the secure BML Connect page with the payment methods of your merchant account; you can open one method directly. | Never trusts the browser The state appended to the return URL is ignored: Odoo always reads the transaction from the BML API. | Signed webhooks Webhooks are checked with the X-Signature (SHA-256 of nonce, timestamp and your API key) before Odoo looks at them. |
Pre-authorize, then capture Authorize now, then capture or cancel the pre-authorization from the Odoo transaction. | Saved cards Card on file: the customer saves the card on BML once; later invoices and orders are charged with the stored token. Removing it deletes it on BML. | Customer details sent Name, e-mail and billing address go to BML so the payment page can skip its customer form; your terms can be marked as accepted. |
Key features
Create Transaction (V2) with amount in laari / cents, MVR and USD Redirect to the BML payment page (full URL; short link kept on the transaction) Optional preselected payment method (skip the method selection) Customer and billing address sent; BML customer reused per contact Skip the customer form and accept your terms on the BML page Payment link lifetime setting Return URL protected by an access token and a transaction id check Get Transaction after every return and webhook Webhook signature check (X-Signature-Nonce / Timestamp / Signature) | Amount and currency checked against Odoo States: confirmed, authorized, failed, cancelled, voided, refund requested Pre-authorization: capture or cancel from Odoo Card on file: card saved on BML, token list read, charge stored token Saved card deleted on BML when removed in Odoo Failure reason from the BML error history shown on the transaction Recovery job: pending payments polled, expired links cancelled UAT environment in Test mode, production when enabled API log with the API key masked, connection test button |
Pay at checkout
BML Connect appears with your other payment methods in the Odoo 19 eCommerce checkout.

API key and webhook
One API key from the BML Merchant Dashboard, the webhook URL to copy and a connection test.

Payment page options
Preselected payment method, skip the customer form, terms URL and payment link lifetime.

Confirmed payment
BML transaction id, state, payment method, card and the short payment link on the transaction.

Pre-authorization
An authorized payment waiting for capture, with the Capture and Void (cancel) buttons.

Failed payments
The reason BML recorded is shown on the transaction and to the customer.

Saved card
The card stored on BML: token, BML customer, brand and expiry, ready for later payments.

API log
Every BML Connect call and webhook, with the API key masked.

How it works
1 | Create an integration app In the BML Merchant Dashboard (UAT for testing) create an app under Connect and copy its API key. |
2 | Configure Odoo Open Payment Providers > BML Connect, paste the API key and press Test Connection. Optionally preselect a payment method and set your terms URL. |
3 | Test on UAT Keep the provider in Test mode: payments go to the BML UAT environment. |
4 | Go live Paste the production API key, set the provider to Enabled and publish it. |
Settings
| API Key | Key of your BML Connect integration app (UAT key in Test mode). |
| App ID | Client id of the app, for reference. |
| Webhook URL | Sent with every payment; can also be set in the dashboard. |
| Preselected Payment Method | Open one BML payment method directly (for example cards). |
| Skip the Customer Form | Send the customer details from Odoo instead. |
| Terms and Conditions URL | Mark your terms as accepted on the BML page. |
| Payment Link Lifetime | Minutes before the BML payment page expires. |
| Capture Amount Manually | Standard Odoo option: pre-authorize, 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 | 963 |
| Technical Name |
mdv_payment_bml_connect |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/payment-bml-connect/ |
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