PHPackages                             zarulizham/laravel-duitnow - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zarulizham/laravel-duitnow

ActiveLibrary

zarulizham/laravel-duitnow
==========================

Malaysia DuitNow payment

2.0.5(3mo ago)85.3k↓33.3%3MITPHPPHP ^8.0

Since Apr 8Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/zarulizham/laravel-duitnow)[ Packagist](https://packagist.org/packages/zarulizham/laravel-duitnow)[ Docs](https://github.com/zarulizham/laravel-duitnow)[ GitHub Sponsors](https://github.com/zarulizham)[ RSS](/packages/zarulizham-laravel-duitnow/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (9)Used By (0)

Malaysia DuitNow Online Banking/Wallet Payment
==============================================

[](#malaysia-duitnow-online-bankingwallet-payment)

[![DNOBW Logo](https://camo.githubusercontent.com/9ec94f3ccb0850891355f511d3675c19fcb5204d5d0c5e0651afb709471d158c/68747470733a2f2f692e6962622e636f2f426a63304679762f646e6f62772e706e67)](https://camo.githubusercontent.com/9ec94f3ccb0850891355f511d3675c19fcb5204d5d0c5e0651afb709471d158c/68747470733a2f2f692e6962622e636f2f426a63304679762f646e6f62772e706e67)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ec8af80ca64139d47b9e7d88b0a8bf69641a8219044d7354a6b775616c7abcfc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6172756c697a68616d2f6c61726176656c2d647569746e6f772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zarulizham/laravel-duitnow)[![Total Downloads](https://camo.githubusercontent.com/c8aed9c79f9cee2c203cfe824c8e6c608eaa1b0758e27c6cc69e039b6d982178/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6172756c697a68616d2f6c61726176656c2d647569746e6f772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zarulizham/laravel-duitnow)

Package for Malaysia DuitNow Online Banking/Wallet Payment

Installation
------------

[](#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
-----

[](#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
----------------

[](#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
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Zarul Zubir](https://github.com/zarulizham)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance82

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~97 days

Recently: every ~140 days

Total

8

Last Release

92d ago

Major Versions

1.0.1 → 2.0.02024-08-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae2768e1d22dfc2cf76094e1bd66c4a156fea41873eada5277bea89d709bd93b?d=identicon)[zarulizham](/maintainers/zarulizham)

---

Top Contributors

[![zarulizham](https://avatars.githubusercontent.com/u/10229855?v=4)](https://github.com/zarulizham "zarulizham (47 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelzarulizhamlaravel-duitnow

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/zarulizham-laravel-duitnow/health.svg)

```
[![Health](https://phpackages.com/badges/zarulizham-laravel-duitnow/health.svg)](https://phpackages.com/packages/zarulizham-laravel-duitnow)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
