New bKash Payment Gateway API for Laravel Framework as well as Raw PHP. Specially for bKash Tokenized Checkout.
You can easily use it for your laravel framework project. Check the routes.php, bkash-payment.blade.php and BkashController.php files and enjoy.
You can use it for your raw PHP project. I have collected these code from bKash Developer GitHub. Please goto Raw PHP folder and get all the files. Run the payment.php file on your server.
- app_key/app_secret and username/password will be shared with merchants during payment gateway onboarding.
- Merchant should preapre own code-base using provided sample.
- Merchant should go through https://developer.bka.sh/reference first for clear understanding about payment gateway APIs.
This is for bkash Merchant Payment Gateway. If You have bkash Merchant account then you can get payment from your customers and send them auto confirmation via your website.
- PHP: cURL
- Javascript : jQuery
- To integrate bKash Payment Gateway your site must have a valid SSL certificate.
- API timeout of 30sec should be set for all the APIs.
app_key + app_secret and username + password will be shared with merchants during payment gateway onboarding.
Sandbox endpoint: https://.sandbox.bka.sh
Production endpoint: https://.pay.bka.sh
- Developer Portal (detail Product, workflow, API information): https://developer.bka.sh/docs/checkout-process-overview
- Grant Token : https://developer.bka.sh/v1.2.0-beta/reference#gettokenusingpost
- Create Payment : https://developer.bka.sh/v1.2.0-beta/reference#createpaymentusingpost
- Execute Payment : https://developer.bka.sh/v1.2.0-beta/reference#executepaymentusingpost
- Query Payment : https://developer.bka.sh/v1.2.0-beta/reference#querypaymentusingget
- Search Transaction Details : https://developer.bka.sh/v1.2.0-beta/reference#searchtransactionusingget
- Go to https://merchantdemo.sandbox.bka.sh/frontend/checkout/version/1.2.0-beta
- Wallet Number: 01770618575
- OTP: 123456
- Pin: 12121
Its my open source contribution. Thank you for using.