Hello there. Welcome to unofficial guide about integrating bKash payment gateway in your application. If you already have had enough with the documentation and API references provided officially by bKash, then this documentation is just for you. Below, I will try to explain the integration steps in detail pointing all the difficulties I've faced and how I came across them.
Before digging in to the main part, lets just share the current official API documentation links available for all. These links are subjected to change without any prior notice. I will try my best to keep them updated.
To generate access token and perform the necessary steps, you will need the following credentials provided directly by bKash -
- Sandbox username
- Sandbox password
- App key and
- App secret
{
var bkashSandboxUsername = "your sandbox user name"
var bkashSandboxPassword = "your sandbox password name"
var bkashSandboxAppKey = "your sandbox app key"
var bkashSandboxAppSecret = "your sandbox app secret"
var sessionIdToken = ""
var mode = "0011"
var payerReference = "01770618575"
var callbackURL = "your callback yourDomain.com"
var merchantAssociationInfo = ""
var amount = "30"
var currency = "BDT"
var intents = "sale"
var merchantInvoiceNumber = "Inv0124"
}