Open Source
Jun 2026 – Jun 2026BML Connect for WooCommerce
A clean, dependency-free WooCommerce payment gateway for Bank of Maldives (BML) Connect — redirect-based Card/MobilePay payments, signature-verified webhooks, and HPOS + Checkout Blocks ready.
Overview
- A reusable, brand-neutral BML Connect payment gateway — drop into any WooCommerce store and configure per merchant.
- Redirect-based payments (Card, BML MobilePay and other methods) with signature-verified webhooks using a timing-safe hash_equals.
- Trustworthy confirmation — re-queries BML for the authoritative state instead of trusting the redirect, with idempotent completion.
- Correct money handling in laari (integer, no floating-point); HPOS and WooCommerce Checkout Blocks compatible.
- No external dependencies (built on the WordPress HTTP API), with a built-in connection test and self-updating from GitHub Releases.
How it works
At checkout the gateway creates a BML transaction and redirects the buyer to BML. Confirmation comes from two idempotent paths: the buyer-return handler re-queries BML for the authoritative state, and a signature-verified webhook completes the order even if the buyer closes the browser before returning.