PHPackages                             programmerhasan/bkash - 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. programmerhasan/bkash

ActiveLibrary[Payment Processing](/categories/payments)

programmerhasan/bkash
=====================

Bkash Payment Integration for Laravel.

v1.2.0(10mo ago)2184MITPHPPHP ^7.4|^8.0|^8.1|^8.2

Since Aug 13Pushed 10mo agoCompare

[ Source](https://github.com/ProgrammerHasan/bkash)[ Packagist](https://packagist.org/packages/programmerhasan/bkash)[ RSS](/packages/programmerhasan-bkash/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

BKash Payment Gateway for Laravel
=================================

[](#bkash-payment-gateway-for-laravel)

Welcome to the **bKash Laravel Package**!
This package allows seamless integration with the bKash payment gateway in Laravel, making transactions quick and hassle-free.

It supports Checkout (URL), Auth &amp; Capture, Refund, and Search Transactions with easy configuration. Built-in automatic grantToken caching (1 hour) ensures full compliance with the latest bKash Tokenized API rules and prevents account lock issues.

---

✨ Features
----------

[](#-features)

- ⚡ **Clean and easy to integrate** with any Laravel project.
- 🧪 Supports **sandbox and production mode** for Bkash payments.
- 🔑 Supports **Auth &amp; Capture** for tokenized payments.
- ↩️ Supports **Refunds** and **Search Transactions**.
- ⚙️ Built-in **automatic grantToken caching (1 hour)** to comply with bKash Tokenized API rules.
- 💰 Enables creating, executing, and querying **payments** via Bkash API.
- 📄 Provides **payment status verification** and transaction history.
- 📝 Enables logging of Bkash payment activities in **sandbox mode only**.
- 🛠️ Follows **Laravel conventions** for service providers and facades.
- 🧩 Provides clean **helper methods** for easy integration into controllers and services.

🛠️ Requirements
---------------

[](#️-requirements)

- 🐘 **PHP:** ^7.4 | ^8.0 | ^8.1 | ^8.2
- ⚡ **Laravel (illuminate/support):** ~6 | ~7 | ~8 | ~9 | ^10 | ^11 | ^12
- 🌐 **cURL enabled** in PHP
- 🔑 **bKash Merchant Account** (sandbox or production)

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

[](#-installation)

```
composer require programmerhasan/bkash
```

### ⚙️ Vendor publish (config)

[](#️-vendor-publish-config)

```
php artisan vendor:publish --provider="ProgrammerHasan\Bkash\BkashServiceProvider" --tag="config"
```

After publish config file setup your credential. you can see this in your config directory bkash.php file

```
