jawak/doku-laravel

library laravel doku/jokul untuk laravel

v1.0.0 2022-07-03 09:10 UTC

This package is auto-updated.

Last update: 2024-10-30 01:37:22 UTC


README

Latest Version on Packagist Total Downloads GitHub Actions

Unofficial Laravel library for jokul(doku)

Installation

You can install the package via composer:

composer require jawak/doku-laravel

Usage

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

Env

DOKU_PRODUCTION=
DOKU_SECRET_KEY=""
DOKU_CLIENT_ID=""

Payment Channels Supported

  • Virtual Account

    • Bank BCA VA
    • Bank Mandiri VA
    • Bank Syariah Indonesia VA
    • DOKU VA
    • Bank Danamon VA
    • Bank BNI VA
    • Bank CIMB VA
    • Bank Permata VA
  • Credit Card

  • Emoney

    • Doku
    • Ovo
    • Shopee Pay
  • Gerai

    • Alamart
    • Indomart

Virtual Account

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

For further details of each parameter, please refer to our Jokul Docs.

Virtual Account

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

Credit Card

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

E-money

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

Gerai

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

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.