Skip to content

indofxlabs/mutasibank.co.id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Mutasibank (Mutasibank.co.id)

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

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());