bKash Payment ~ Laravel & Raw PHP
New bKash Payment Gateway API for Laravel Framework as well as Raw PHP. Specially for bKash Tokenized Checkout.
Laravel Framework
You can easily use it for your laravel framework project. Check the routes.php, bkash-payment.blade.php and BkashController.php files and enjoy.
Raw PHP Guidelines
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.
Information / Requirements
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.
Steps for using solutions of bKash Payment Gateway
Step 1: On-board as a bKash Merchant
app_key + app_secret and username + password will be shared with merchants during payment gateway onboarding.
Step 2: Stage on Sandbox
Sandbox endpoint: https://.sandbox.bka.sh
Step 3: Go Live on Production
Production endpoint: https://.pay.bka.sh
Required APIs
- 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
Checkout Demo
- Go to https://merchantdemo.sandbox.bka.sh/frontend/checkout/version/1.2.0-beta
- Wallet Number: 01770618575
- OTP: 123456
- Pin: 12121
License
Alhamdulillah ~ All Praise is Due to ALLAH Alone ...
Its my open source contribution. Thank you for using.
Credits
- Abdullah Al Noman
- Abdullah Al Mamun ❤️ ❤️