atiqursafayat/bagisto-bkash-v2

bKash Payment Gateway for Bagisto (Updated to API v2)

Maintainers

Package info

github.com/atiqursafayat/bagisto-bkash-v2

pkg:composer/atiqursafayat/bagisto-bkash-v2

Fund package maintenance!

Ihasan

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v1.0.3 2026-03-07 01:08 UTC

This package is auto-updated.

Last update: 2026-03-07 01:09:28 UTC


README

Simple bKash payment integration for Bagisto e-commerce stores.

Forked from theihasan/bagisto-bkash and upgraded to bKash API v2.

Installation

Install package

composer require atiqursafayat/bagisto-bkash-v2

Run installation command

php artisan bagisto-bkash:install

Run migrations

php artisan migrate

Configuration

  1. Go to Admin Panel
    • Navigate to: Configuration → Sales → Payment Methods → bKash
  2. Configure Settings:
    • Status: Enable
    • Live Base URL: https://tokenized.pay.bka.sh/v2/
    • Sandbox Base URL: https://tokenized.sandbox.bka.sh/v2/
    • Username: Your bKash merchant number
    • Password: Your bKash password
    • App Key: Your bKash app key
    • App Secret: Your bKash app secret
    • Logo: Upload bKash logo (optional)
    • Environment: Select Sandbox/Live
  3. Test Credentials (Sandbox):
  • Username: 01770618567
  • Password: D7DaC<*E*eG
  • App Key: 0vWQuCRGiUX7EPVjQDr0EUAYtc
  • App Secret: jcUNPBgbcqEDedNKdvE4G1cAK7D3hCjmJccNPZZBq96QIxxwAMEx

Verification

  • Go to your store's checkout page
  • Select bKash as payment method
  • Complete test transaction to verify integration

Features

  • Secure tokenized payment processing
  • Sandbox and Live environment support
  • Automatic token refresh and caching
  • Complete payment lifecycle management
  • Payment status tracking
  • Comprehensive error handling

Requirements

  • Bagisto 2.x
  • PHP 8.2+
  • Valid bKash merchant account

Testing

composer test

License

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

That's it! bKash payments are now ready.