PHPackages                             kreashion/hblpay - 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. kreashion/hblpay

ActiveLibrary[Payment Processing](/categories/payments)

kreashion/hblpay
================

HBLPay Integration for Laravel

0310PHP

Since Sep 23Pushed 7mo agoCompare

[ Source](https://github.com/webdev0320/HBLPAYMENT-KREASHION)[ Packagist](https://packagist.org/packages/kreashion/hblpay)[ RSS](/packages/kreashion-hblpay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

HBLPay Laravel Package
======================

[](#hblpay-laravel-package)

A Laravel package for integrating **HBLPay Payment Gateway**.
Built with ❤️ by [Kreashion Software House](https://kreashionsoftwarehouse.com).

---

📦 Installation
--------------

[](#-installation)

Install the package via Composer:

composer require kreashion/hblpay

If Laravel does not auto-discover, add the provider manually in config/app.php:

'providers' =&gt; \[ Kreashion\\HBLPay\\HBLPayServiceProvider::class, \],

Publish Configuration

Publish the package config file:

php artisan vendor:publish --tag=config

This will create:

config/hblpay.php

Configuration

Add the following to your .env file:

HBLPAYENV=sandbox # use "production" for live HBLUSERID=your\_user\_id HBLPASSWORD=your\_password HBLCHANNEL=HBLPay\_MyWebsite HBLCLIENT\_NAME=your\_client\_name HBLPAY\_RETURN\_URL=HBLPAY\_RESPONSE\_URL=HBLPAY\_CANCEL\_URL=

Then update config/hblpay.php with your RSA keys:

'publicKey' =&gt; "-----BEGIN PUBLIC KEY-----...-----END PUBLIC KEY-----", 'privateKey' =&gt; "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----",

1. Create Checkout

use Kreashion\\HBLPay\\HBLPay;

public function checkout() { $hbl = new HBLPay();

```
$payload = [
    "USER_ID"     => config('hblpay.user_id'),
    "PASSWORD"    => config('hblpay.password'),
    "CLIENT_NAME" => config('hblpay.client_name'),
    "RETURN_URL"  => config('hblpay.return_url'),
    "RESPONSE_URL"=> config('hblpay.response_url'),
    "CANCEL_URL"  => config('hblpay.cancel_url'),
    "CHANNEL"     => config('hblpay.channel'),
    "TYPE_ID"     => "0",
    "ORDER"       => [
        "DISCOUNT_ON_TOTAL" => "0",
        "SUBTOTAL" => "1000",
        "OrderSummaryDescription" => [
            [
                "ITEM_NAME"   => "License",
                "QUANTITY"    => "1",
                "UNIT_PRICE"  => "1000",
                "OLD_PRICE"   => "0",
                "CATEGORY"    => "application",
                "SUB_CATEGORY"=> "NA",
            ]
        ]
    ],
    "SHIPPING_DETAIL" => [
        "NAME"           => "NA",
        "DELIEVERY_DAYS" => 2,
        "SHIPPING_COST"  => 0,
    ],
    "ADDITIONAL_DATA" => [
        "REFERENCE_NUMBER" => "ORDER12345",
        "CUSTOMER_ID"      => "CUSTOMER001",
        "CURRENCY"         => "PKR",
        "BILL_TO_SURNAME"  => "Test",
        "BILL_TO_FORENAME" => "User",
        "BILL_TO_EMAIL"    => "test@example.com",
        "BILL_TO_PHONE"    => "03001234567",
        "BILL_TO_ADDRESS_LINE" => "Some Address",
        "BILL_TO_ADDRESS_CITY" => "Karachi",
        "BILL_TO_ADDRESS_COUNTRY" => "PK",
        "BILL_TO_ADDRESS_POSTAL_CODE" => "74200",
    ],
];

$checkoutUrl = $hbl->checkout($payload);

return redirect($checkoutUrl);

```

}

2. Handle Response

After payment, HBLPay redirects to your configured RETURN\_URL or RESPONSE\_URL.

use Kreashion\\HBLPay\\HBLPay;

public function paymentResponse() { $hbl = new HBLPay(); $response = $hbl-&gt;getResponse();

```
return $response;

```

}

Example Response:

{ "splitToArray": \[...\], "responseCode": "000", "responseMsg": "Transaction Successful", "orderRefNumber": "24101723544183", "paymentType": "CARD" }

License

This package is open-source, released under the MIT License.

Author

Kreashion Software House 🔗 [www.kreashionsoftwarehouse.com](http://www.kreashionsoftwarehouse.com)

📧

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance43

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![webdev0320](https://avatars.githubusercontent.com/u/180377260?v=4)](https://github.com/webdev0320 "webdev0320 (5 commits)")

### Embed Badge

![Health badge](/badges/kreashion-hblpay/health.svg)

```
[![Health](https://phpackages.com/badges/kreashion-hblpay/health.svg)](https://phpackages.com/packages/kreashion-hblpay)
```

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