indofx/mutasibank

Mutasibank.co.id API

v1.0.1 2022-02-28 15:03 UTC

This package is auto-updated.

Last update: 2024-12-29 06:53:05 UTC


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

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