BML Connect PHP/Laravel SDK for Bank of Maldives payment gateway
bml-connect/laravel is a Laravel package for bml connect php/laravel sdk for bank of maldives payment gateway.
It currently has 0 GitHub stars and 135 downloads on Packagist.
Install it with composer require bml-connect/laravel.
Discover more Laravel packages by bml-connect
or browse all Laravel packages to compare alternatives.
Last updated
v1 — PHP/Laravel SDK for the BML Connect payment gateway by Bank of Maldives.
composer require bml-connect/laravel
use BmlConnect\BmlConnect;
use BmlConnect\Enums\Environment;
$bml = new BmlConnect('your-api-key', Environment::PRODUCTION);
$transaction = $bml->transactions->create([
'amount' => 100.00,
'currency' => 'MVR',
'redirectUrl' => 'https://example.com/callback',
'localId' => 'order-123',
]);
echo $transaction->url; // Redirect customer to this URL
Add your API key to .env:
BML_CONNECT_API_KEY=your-api-key
BML_CONNECT_ENV=production
Use the facade:
use BmlConnect\Facades\BmlConnect;
$transaction = BmlConnect::$transactions->create([
'amount' => 100.00,
'currency' => 'MVR',
'redirectUrl' => 'https://example.com/callback',
'localId' => 'order-123',
]);
For full API reference and guides, see the Documentation.
Highlights:
./vendor/bin/phpunit
See Testing Guide for details on unit, feature, and integration tests.
MIT. See LICENSE for details.