1. Go to this page and download the library: Download javaabu/bml-connect-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
javaabu / bml-connect-laravel example snippets
php
$bml_connect = App::make('bml-connect');
$json = [
"provider" => "alipay", // Payment method enabled for your merchant account such as bcmc, alipay, card
"currency" => "MVR",
"amount" => 1000, // 10.00 MVR
"redirectUrl" => "https://foo.bar/order/123" // Optional redirect after payment completion
];
$transaction = $bml_connect->createTransaction($json);
php
$json = [
"provider" => "alipay", // Payment method enabled for your merchant account such as bcmc, alipay, card
"currency" => "MVR",
"amount" => 1000, // 10.00 MVR
"redirectUrl" => "https://foo.bar/order/123" // Optional redirect after payment completion
];
$bml_connect = BMLConnect::createTransaction($json);