Laravel PHP library untuk mengintegrasikan Aplikasi Anda dengan API Mutasibank (mutasibank.co.id). Untuk dokumentasi lebih jelas dan lengkap, silahkan kunjungi website resminya di API Mutasibank
- Installasi
- Setting
- Get Current User
- Get All Accounts
- Get Account by ID
- Validate Transaction
- Re-run Check Mutasi
- Match Transaction
- Get Account Statements
- On Off Account
composer require indofx/mutasibank
Setelah installasi, publish konfigurasi yang dipergunakan oleh library
php artisan vendor:publish --provider="Indofx\Mutasibank\ServiceProvider" --tag="mutasibank-config"
Papda Konfigurasi config/mutasibank.php
, silahkan input Environment yang sesuai dengan kebutuhan Anda.
[
'url' => 'https://mutasibank.co.id/api/v1/',
'token' => 'your-token'
],
use Indofx\Mutasibank\Mutasibank;
$mutasibank = new Mutasibank();
$response = $mutasibank->getCurrentUser();
dd($response->json());
use Indofx\Mutasibank\Mutasibank;
$mutasibank = new Mutasibank();
$response = $mutasibank->getAllAccount();
dd($response->json());
use Indofx\Mutasibank\Mutasibank;
$mutasibank = new Mutasibank();
$accountID = 123;
$response = $mutasibank->getAccountById($accountID);
dd($response->json());
use Indofx\Mutasibank\Mutasibank;
$mutasibank = new Mutasibank();
$transactionID = 47835362;
$response = $mutasibank->validateTransaction($transactionID);
dd($response->json());
use Indofx\Mutasibank\Mutasibank;
$mutasibank = new Mutasibank();
$accountID = 123;
$response = $mutasibank->rerunCheckMutasi($accountID);
dd($response->json());
use Indofx\Mutasibank\Mutasibank;
$mutasibank = new Mutasibank();
$accountID = 123;
$amount = 10333;
$response = $mutasibank->matchTransaction($accountID, $amount);
dd($response->json());
use Indofx\Mutasibank\Mutasibank;
$mutasibank = new Mutasibank();
$accountID = 123;
$dateFrom = '2022-01-01';
$dateTo = '2022-02-29';
$response = $mutasibank->getAccountStatement($accountID, $dateFrom, $dateTo);
dd($response->json());
use Indofx\Mutasibank\Mutasibank;
$mutasibank = new Mutasibank();
$accountID = 123;
$response = $mutasibank->onOffAccount($accountID);
dd($response->json());