Download the PHP package irfan-chowdhury/bkash-tokenized-checkout without Composer

On this page you can find all versions of the php package irfan-chowdhury/bkash-tokenized-checkout. 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-tokenized-checkout

# Bkash Payment Gatway Integration in Laravel

Requirements

Installation

You can install the package via composer :

Configuration

After completing the installation, service provider need to register in config/app.php, add in providers array -

Now run this publish this -

Environement Variable (.ENV)

Guideline to setup bKash

Then are some types of bKash integration. Here we used Tokenized solution.

Step-1 : Registration

First of all you need a marchant account and then need to register your website there.

Step-2 : Sandbox Validation

First of all follow the developer documentation.

Visit the link : https://developer.bka.sh/docs/tokenized-checkout-overview

Our Sandbox Credentials will be look like that -

1. Grand Token

Request URL: {base_URL}/tokenized/checkout/token/grant Here the base_URL will be - https://tokenized.sandbox.bka.sh/v1.2.0-beta/

Now follow the screenshot given below -

in POSTMAN -

Headers

Body

Response Result -

2. Create Payment

Follow the format -

in Postman -

Header -

Body -

Response

3. Execute Payment

First copy the bKashURL and then goto the link and make payment from their site first -

For an example, sample link look like-


After creating the payment, now goto postman and follow the format -

in Postman -

Header -

Body -

Response

4. Verify Sandbox Validation

Create Payment Sandbox Test

Execute Payment Sandbox Test

Success Output

5. Live Credentials

After doing all these, finally you will get the Live Credentials.

Step-3 : Setup the bkash credentials in your site

.ENV

Put the value in .env file -

First of all test your application by Sandbox. If all test ok then comment or hide the sandbox credentials and use the live credentials.

Try to run the package in your app

  1. Please type on the url your-domain.com/payment/checkout

This is the bkash page. Click on the pay now button.

After Payment done -

Override

1. BkashController

After published, the BkashController file will be copied in app/Https/Controllers. You'll see two method

You can override the two methods. The bkashCallback() indicates that when the payment done, it'll redirect back this method. This time you can customize your other bussiness logic what you want. You'll see a line which is in comment mode. Basically you should customize after this line.

2. routes/web.php

When you customize the controller, you need to use the route also. You can use only these line -

If you need to change the payment/bkash/callback, you should also update the corresponding data in config/bkash.php. However, it is recommended not to make these changes.

3. Blade files

You can customize it according to your choice. After publishing, you will find it in the resources/views/vendor/bkash directory.

Demo

Though you'll get Sandox details from Bkash, but you can try by using these in your app.

References

Note: This repository is not associated with or promoting bKash and does not provide any guarantees.


All versions of bkash-tokenized-checkout with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 irfan-chowdhury/bkash-tokenized-checkout contains the following files

Loading the files please wait ....