bKash Payment Gateway (Unofficial)
Unofficial WordPress plugin to integrate bKash payment gateway for WooCommerce and digital payments in Bangladesh.
by Tamim Iqbal · github.com/iamtiqbal/bkash-wordpress-integration
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/iamtiqbal/bkash-wordpress-integration/archive/refs/heads/main.zipbKash WordPress Payment Gateway (Unofficial)
⚠️ Disclaimer
This is an unofficial community-driven integration for bKash Tokenized Checkout.
This project is not affiliated with or endorsed by bKash or Bangladesh Bank.
Developer: Tamim Iqbal — IT Manager & AI Developer
A WooCommerce payment gateway plugin for bKash Tokenized Checkout (Bangladesh). Supports Classic and Blocks checkout.
Table of Contents
- Features
- Requirements
- Installation
- Quick Start
- API Reference
- Payment Flow
- Status Codes
- Gotchas & Troubleshooting
- Security Notes
- Testing
- License
Features
- Unofficial bKash gateway for WooCommerce
- Classic Checkout and WooCommerce Blocks checkout supported
- Secure API communication with bKash Tokenized Checkout
- Redirect-based payment flow with callback handling
- Compatible with the latest WordPress and WooCommerce
Requirements
- WordPress 6.0+ (recommended)
- WooCommerce 7.0+ (recommended)
- PHP 7.4+ with cURL enabled
Installation
- Upload the plugin folder to
/wp-content/plugins/bkash-wordpress-integration. - Activate via WordPress Plugins menu.
- Go to WooCommerce → Settings → Payments and enable bKash.
- Enter your bKash credentials:
- Base API URL
- Username
- Password
- App Key
- App Secret
Quick Start
- Add products to cart and proceed to checkout.
- Select bKash and place order.
- Customer is redirected to bKash for payment.
- On return, the order is marked paid/cancelled/failed based on callback status.
API Reference
Authentication
The plugin authenticates using bKash Tokenized Checkout credentials.
Initiate Payment
Creates a payment and redirects the customer to bKash.
Handle Callback
The callback endpoint is:
https://your-site.com/?wc-api=bkash_callback
Check Transaction Status
Handled by execute payment during callback.
Utilities
Includes invoice generation and payment metadata saved per order.
Payment Flow
- Customer checks out → bKash selected.
- Plugin authenticates and creates payment.
- Customer pays on bKash webview.
- bKash redirects to callback.
- Order status updated in WooCommerce.
Status Codes
Completed= Success
Gotchas & Troubleshooting
- Store currency should be BDT.
- Ensure credentials are correct (test vs production).
- Ensure SSL is enabled for callback URL.
Security Notes
- Do not hardcode credentials in files.
- Use HTTPS for all callbacks and checkout pages.
Testing
- Use bKash sandbox credentials where available.
- Test Classic and Blocks checkout flows.
License
MIT License. See LICENSE file for details.