indofx / mutasibank
Mutasibank.co.id API
v1.0.1
2022-02-28 15:03 UTC
Requires
- php: >=7.2|^8.0
- aslam/response: ^1.0
- guzzlehttp/guzzle: ^7.0
- illuminate/support: ^6.0 || ^7.0 || ^8.0 || ^9.0
Requires (Dev)
- phpunit/phpunit: ^9
README
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
Fitur Library
- 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
INSTALASI
composer require indofx/mutasibank
Setup
Setelah installasi, publish konfigurasi yang dipergunakan oleh library
php artisan vendor:publish --provider="Indofx\Mutasibank\ServiceProvider" --tag="mutasibank-config"
SETTING
Papda Konfigurasi config/mutasibank.php
, silahkan input Environment yang sesuai dengan kebutuhan Anda.
[ 'url' => 'https://mutasibank.co.id/api/v1/', 'token' => 'your-token' ],
Get current user
use Indofx\Mutasibank\Mutasibank; $mutasibank = new Mutasibank(); $response = $mutasibank->getCurrentUser(); dd($response->json());
Get all accounts
use Indofx\Mutasibank\Mutasibank; $mutasibank = new Mutasibank(); $response = $mutasibank->getAllAccount(); dd($response->json());
Get account by ID
use Indofx\Mutasibank\Mutasibank; $mutasibank = new Mutasibank(); $accountID = 123; $response = $mutasibank->getAccountById($accountID); dd($response->json());
Validate Transaction
use Indofx\Mutasibank\Mutasibank; $mutasibank = new Mutasibank(); $transactionID = 47835362; $response = $mutasibank->validateTransaction($transactionID); dd($response->json());
Re run check mutasi
use Indofx\Mutasibank\Mutasibank; $mutasibank = new Mutasibank(); $accountID = 123; $response = $mutasibank->rerunCheckMutasi($accountID); dd($response->json());
Match Transaction
use Indofx\Mutasibank\Mutasibank; $mutasibank = new Mutasibank(); $accountID = 123; $amount = 10333; $response = $mutasibank->matchTransaction($accountID, $amount); dd($response->json());
Get account statement
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());
On Off account
use Indofx\Mutasibank\Mutasibank; $mutasibank = new Mutasibank(); $accountID = 123; $response = $mutasibank->onOffAccount($accountID); dd($response->json());