PHPackages                             jagdish-j-p/billdesk - 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. [Payment Processing](/categories/payments)
4. /
5. jagdish-j-p/billdesk

ActiveLibrary[Payment Processing](/categories/payments)

jagdish-j-p/billdesk
====================

Package to integrate BillDesk Payment gateway in Laravel

v1.0.1(3y ago)13081[1 PRs](https://github.com/Jagdish-J-P/billdesk/pulls)MITPHP

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Jagdish-J-P/billdesk)[ Packagist](https://packagist.org/packages/jagdish-j-p/billdesk)[ Fund](https://paypal.me/jagdishjptl)[ Fund](https://www.buymeacoffee.com/jagdish.j.ptl)[ RSS](/packages/jagdish-j-p-billdesk/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

BillDesk Payment Gateway Integration in Laravel
===============================================

[](#billdesk-payment-gateway-integration-in-laravel)

Repository has been developed to integrate BillDesk Payment Gateway in Laravel.

This repository is currently in development. There might be some exception.

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

[](#installation)

You can install the package via composer:

```
composer require jagdish-j-p/billdesk
```

Then run the publish command to publish the config files and support controller and view

```
php artisan billdesk:publish
```

This will generate the following files

- The config file with default setup for you to override `billdesk.php`
- The controller that will receive payment response and any host-to-host events `Http/Controllers/Billdesk/Controller.php`
- The assets in public directory.
- The view file with default html for you to override `payment.blade.php`. Note do not change form action URL `billdesk.payment.auth.request`.

Setups
------

[](#setups)

1. Add your response urls and your Merchant Id, Security Id and Cheksum Key to the `.env` file.

```
BILLDESK_RESPONSE_URL=https://app.test/billdesk/payments/callback
BILLDESK_RESPONSE_PATH=billdesk/payments/callback
BILLDESK_WEBHOOK_URL=https://app.test/billdesk/payments/webhook
BILLDESK_WEBHOOK_PATH=billdesk/payments/webhook

BILLDESK_MERCHANT_ID=
BILLDESK_SECURITY_ID=
BILLDESK_CHECKSUM_KEY=
BILLDESK_UAT_PREFIX="test-prefix"
```

2. Run migration to add the transactions table

```
php artisan migrate
```

Usage
-----

[](#usage)

1. You can visit [](http://app.test/billdesk/initiate/payment) for the payment flow demo of web integration.
2. Handle the payment response in `Http/Controllers/Billdesk/Controller.php`

```
    /**
     * This will be called after the user approve the payment
     * on the bank side
     *
     * @param Request $request
     * @return Response
     */
    public function callback(Request $request)
    {
        $response = $request->handle();

        if ($response['response_format'] == 'JSON')
            return response()->json(['response' => $response, 'billdesk_response' => $request->all()]);
        dd($response, $request); // Remove this line and modify as per your needs.
        // Update your order status
    }

    /**
     * This will handle any direct call from BillDesk
     *
     * @param Request $request
     * @return string
     */
    public function webhook(Request $request)
    {
        $response = $request->handle();

        // Update your order status

        return 'OK';
    }

```

3. Check Status of all pending transactions using command

```
php artisan billdesk:payment-status
```

4. Check Status of specific transaction using command pass comma saperated order reference ids.

```
php artisan billdesk:payment-status reference_id1,reference_id2,reference_id3
```

5. Check transaction status from Controller

```
use JagdishJP/Billdesk/Billdesk;

/**
 * Returns status of transaction
 *
 * @param string $reference_id reference order id
 * @return array
 */
$status = Billdesk::getTransactionStatus($reference_id);
```

You can also override `payment.blade.php` with your custom design to integrate with your layout. but do not change `name` attribute of html controls and `action` URL of form.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Contrubuters are welcome and will be given full credit.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jagdish-J-P](https://github.com/jagdish-j-p)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Packagify
---------

[](#packagify)

This package was generated using the [Packagify](https://github.com/jagdish-j-p/packagify).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% 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 ~322 days

Total

2

Last Release

1439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e7c021b8f19406056e9a24ec8d268cec00f1a9d77bd72d8cc5cb0a6fbc6a178?d=identicon)[Jagdish-J-P](/maintainers/Jagdish-J-P)

---

Top Contributors

[![Jagdish-J-P](https://avatars.githubusercontent.com/u/20887370?v=4)](https://github.com/Jagdish-J-P "Jagdish-J-P (20 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/jagdish-j-p-billdesk/health.svg)

```
[![Health](https://phpackages.com/badges/jagdish-j-p-billdesk/health.svg)](https://phpackages.com/packages/jagdish-j-p-billdesk)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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