Your clients can pay invoices and store orders from their bKash wallet, on bKash's secure payment page. Clients can also pay from a public invoice link, without signing in.
Requirements
- RISE 4.2 or newer, with the cron job running.
- A bKash payment gateway merchant account with Tokenized Checkout (see Get your credentials).
- bKash takes BDT only. Amounts with paisa (ex 1,250.50) are charged exactly.
Get your credentials
bKash gives credentials only to merchants. There is no self sign-up sandbox.
- Apply for a bKash Payment Gateway (PGW) merchant account through bKash's website (Business > Payment Gateway) or your bKash business contact. You need your trade license, TIN, NID, bank account details and a website with prices, terms, privacy and refund pages. Ask for Tokenized Checkout.
- bKash sends the sandbox App Key, App Secret, Username and Password, with a test wallet number, OTP and PIN. The integration steps are on the bKash developer portal.
- After your sandbox tests, bKash checks your integration (they may ask for screenshots or a test video). Then they send the live details.
Username and Password are the API user for the payment gateway, not your bKash merchant app or panel login.
Setup
- Install and activate the plugin in Settings > Plugins.
- Go to Settings > Payment methods and edit bKash.
- Enter the App Key, App Secret, Username and Password (see Get your credentials).
- Turn on Testing environment to take test payments with your sandbox details. Turn it off for real payments with your live details.
- Turn on Available on Invoice and save.
There is nothing to set for notifications (no webhook). A payment is recorded when the client comes back from bKash. If that is interrupted, the cron job checks the payment with bKash again.
bKash allows only 2 token requests per hour. RISE keeps the token and asks for a new one only when it expires. If the details are wrong, fix them and wait up to one hour before you try again.
Testing
Turn on Testing environment and enter your sandbox details. Open a BDT invoice as a client in a private browser window, click the bKash button and pay with the sandbox wallet number, OTP and PIN that bKash gave you. Back in RISE, the payment shows in the invoice's Payments. When you are ready, turn off Testing environment and enter your live details.