PHP code example of jawak / doku-laravel

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

    

jawak / doku-laravel example snippets


php artisan vendor:publish --provider="Jawak\DokuLaravel\DokuLaravelServiceProvider" --tag="config"

$params = [
    "order" => [
        "invoice_number" => 'INV002',
        'amount' => 100000
    ],
    "virtual_account_info" => [
        "expired_time" => 1440,
        "reusable_status" => false,
    ],
    "customer" => [
        "name" => 'lorem ipsum',
        "email" => '[email protected]'
    ]
];

use Jawak\DokuLaravel\Facades\Doku;

Doku::VA()->bri($params);
Doku::VA()->mandiri($params);
Doku::VA()->bsi($params);
Doku::VA()->bni($params);
Doku::VA()->doku($params);
Doku::VA()->danamon($params);
Doku::VA()->bca($params);
Doku::VA()->cimb($params);
Doku::VA()->permata($params);

Doku::CC()->generate($params);

Doku::EMoney()->doku($params);
Doku::EMoney()->ovo($params);
Doku::EMoney()->shopeePay($params);

Doku::Gerai()->alfa($params);
Doku::Gerai()->indomaret($params);