Download the PHP package devrkb21/bkash-pgw-laravel without Composer

On this page you can find all versions of the php package devrkb21/bkash-pgw-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bkash-pgw-laravel

πŸ’Έ Laravel bKash Payment Gateway (Tokenized Checkout V2)

πŸš€ Production-ready Laravel bKash package for integrating bKash Tokenized Checkout V2 API with secure webhook, token management, and full payment flow.

The most complete and secure bKash integration for Laravel.


PHP Laravel License


πŸš€ Quick Start (30 seconds)

πŸ‘‰ That’s it. User will be redirected to bKash payment page.


βš™οΈ Configuration

Publish config:

Add credentials:


Auth APIs

Grant Token - POST /auth/grant-token

Request body keys:

Response (normalized by the package, expires_at is computed):

Refresh Token - POST /auth/refresh-token

Request body keys:

Response (normalized by the package, expires_at is computed):

Payment APIs (Without Agreement)

Create Payment - POST /payment/create

Request body keys:

Response (package normalizes common fields):

Execute Payment - POST /payment/execute

Request body keys:

Response (package normalizes common fields):

Query Payment - POST /query/payment

Request body keys:

Response (raw bKash payload, normalized keys are added when present):

Capture Payment - POST /payment/capture

Request body keys:

Response (raw bKash payload, normalized keys are added when present):

Void Payment - POST /payment/void

Request body keys:

Response (raw bKash payload, normalized keys are added when present):

Payment APIs (With Agreement)

Create Payment With Agreement - POST /payment-with-agreement/create

Request body keys:

Response (package normalizes common fields):

Execute Payment With Agreement - POST /payment-with-agreement/execute

Request body keys:

Response (package normalizes common fields):

Capture Payment With Agreement - POST /payment-with-agreement/capture

Request body keys:

Response (raw bKash payload, normalized keys are added when present):

Void Payment With Agreement - POST /payment-with-agreement/void

Request body keys:

Response (raw bKash payload, normalized keys are added when present):

Agreement APIs

Create Agreement - POST /agreement/create

Request body keys:

Response (raw bKash payload):

Execute Agreement - POST /agreement/execute

Request body keys:

Response (raw bKash payload):

Query Agreement - POST /query/agreement

Request body keys:

Response (raw bKash payload):

Cancel Agreement - POST /agreement/cancel

Request body keys:

Response (raw bKash payload):

Transaction and Refund APIs

Search Transaction - POST /general/search-transaction

Request body keys:

Response (raw bKash payload):

Refund Transaction - POST /refund/payment/transaction

Request body keys:

Response (raw bKash payload):

Refund Status - POST /refund/payment/status

Request body keys:

Response (raw bKash payload):

Webhook Events (SNS)

Enable the built-in route by setting BKASH_ENABLE_ROUTES=true.

Webhook endpoint:

SubscriptionConfirmation Event

Headers:

Request body keys:

Response (from the package webhook service):

Notification Event

Headers:

Request body keys:

Response (from the package webhook service):

Checkout SDK

Checkout Script URL - GET

Response: JavaScript file (200/301/302/304/404).

Payout

Initiate Payout - POST /payout/initiate

Request body keys:

Response (raw bKash payload):


πŸ’³ Payment Flow

1. Create Payment

2. Handle Callback

3. Query Payment

4. Capture / Void


πŸ”„ Agreement (Saved Wallet)


πŸ’° Refund API


πŸ”” Webhook (Secure & Automatic)

Enable in config:

Endpoint:

Automatically handled:


πŸ” Why this package?

Most Laravel bKash packages:

This package provides:


πŸ§ͺ Testing


πŸ“¦ Requirements


πŸ“ˆ SEO Keywords

Laravel bKash payment gateway, bKash Laravel package, Bangladesh payment gateway Laravel, bKash Tokenized Checkout V2, Laravel payment integration bKash


πŸ›  Roadmap


🀝 Contributing

PRs are welcome. Please ensure tests pass.


πŸ“„ License

MIT License


⭐ Support

If this package helps you, please give it a star ⭐ It helps others discover the project.


β˜• Support Development

If you find this package useful, you can support ongoing development:

πŸ‘‰ https://buymeacoffee.com/devrkb21

Your support helps maintain and improve this package ❀️ Buy Me A Coffee


All versions of bkash-pgw-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/cache Version ^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devrkb21/bkash-pgw-laravel contains the following files

Loading the files please wait ...