New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

zarulizham/laravel-duitnow

Malaysia DuitNow payment
6,687 10

Larablocks Analysis

zarulizham/laravel-duitnow works with Laravel 8 to 13 (latest release 2.0.7, Jun 14, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Jun 14, 2026)
  • 280 downloads a month (needs 10,000)
  • 10 GitHub stars (needs 100)

State

Actively maintained
  • Last stable release: Jun 14, 2026.
  • 4 releases in the last 12 months.
  • First released: Apr 8, 2024.
  • Monthly downloads: 280.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require zarulizham/laravel-duitnow
Latest Version:2.0.7
PHP:^8.0
Laravel:8 – 13
License:MIT
Last Updated:Jun 14, 2026
Links: GitHub  ·  Packagist
Maintainer: zarulizham

Malaysia DuitNow Online Banking/Wallet Payment

DNOBW Logo

Latest Version on Packagist Total Downloads

Package for Malaysia DuitNow Online Banking/Wallet Payment

Installation

You can install the package via composer:

composer require zarulizham/laravel-duitnow

You can publish and run the migrations with:

php artisan vendor:publish --tag="duitnow-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="duitnow-config"

You can publish the controller file with:

php artisan vendor:publish --tag="duitnow-controller"

This is the contents of the published config file:

return [
    'url' => env('DUITNOW_URL'),
    'client_id' => env('DUITNOW_CLIENT_ID'),
    'product_id' => env('DUITNOW_PRODUCT_ID'),
    'client_secret' => env('DUITNOW_CLIENT_SECRET'),
    'merchant_id' => env('DUITNOW_MERCHANT_ID'),
    'x_signature_key' => env('DUITNOW_X_SIGNATURE_KEY'),
    'token_expiry' => env('DUITNOW_TOKEN_EXPIRY', 3600),
    'bank_cache' => env('DUITNOW_BANK_CACHE', 43200), # 12 hours
    'merchant_name' => env('DUITNOW_MERCHANT_NAME'),
    'account_type' => env('DUITNOW_MERCHANT_ACCOUNT_TYPE'),

    'source_of_funds' => [
        "01"
    ],

    'certificates' => [
        'uat' => [
            'disk' => 'local',
            'dir' => 'paynet/duitnow/',
        ],
        'production' => [
            'disk' => 'local',
            'dir' => 'paynet/duitnow/',
        ]
    ],

    'direct_path' => env('DUITNOW_DIRECT_PATH'),
    'callback_path' => env('DUITNOW_CALLBACK_PATH'),
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="duitnow-views"

Usage

    $duitNowPayment = new DuitNowPayment();

    $bankInfo = explode('|', $request->bank);
    $bankId = $bankInfo[0];
    $bankType = $bankInfo[1];

    $redirectUrl = $duitNowPayment->initiatePayment(10, "Zarul Zubir", $bankType, "Ref: " . rand(100, 200), $bankId, 'A1000001');

Upgrade v1 to v2

This major upgrade add column on transaction table to allow morphing.

Run `php artisan vendor:publish --tag=duitnow-v2-migration`

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

Related Packages

zarulizham/laravel-ecommerce-payment

Malaysia payment gateway for eCommerce

7,712 1
zarulizham/laravel-ambank-autodebit

Laravel wrapper for AmBank AutoDebit (eConsent)

4,316 0
zarulizham/laravel-wasap-one

Laravel Package for WasapONE

3,448 1
zarulizham/laravel-e-mandate

Laravel package for eMandate (FPX)

1,132 0
zarulizham/laravel-ocrmypdf

This is my package OCRmyPDF

1,003 1

Version History

Version Released PHP Laravel License
2.0.7 ^8.0 ^8.73|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
2.0.6 ^8.0 ^8.73|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
2.0.5 ^8.0 ^8.73|^9.0|^10.0|^11.0|^12.0 MIT
2.0.4 ^8.0 ^8.73|^9.0|^10.0|^11.0|^12.0 MIT
2.0.3 ^8.0 ^8.73|^9.0|^10.0 MIT