PHP code example of indofx / mutasibank

1. Go to this page and download the library: Download indofx/mutasibank 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/ */

    

indofx / mutasibank example snippets


        [
            '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());
bash
php artisan vendor:publish --provider="Indofx\Mutasibank\ServiceProvider" --tag="mutasibank-config"