Download the PHP package traknpay/checkout without Composer

On this page you can find all versions of the php package traknpay/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 checkout

Laravel 5.x Latest Stable Version Total Downloads License

Checkout

Traknpay/Checkout is a Laravel package to integrate traknpay payment gateway in your laravel 5.X package

This package is used to integrate with traknpay api payment request.

Requirements

The Checkout package is working fine in Laravel 5.1 and 5.3.However , in laravel 5.2, there is a minor issue when response is not handled.If response is handled as described in the below steps then there would be no issue.

  1. PHP 5.4.0 or later
  2. Laravel 5.1 or 5.3

Quick Installation

To get started, install Checkout via the Composer package manager:

composer require traknpay/checkout

Service Provider

Next,register the Checkout service provider in the providers array of your config/app.php configuration file:

TraknPay\Checkout\CheckoutServiceProvider::class

Facade

Add 'Checkout' facade in the aliases array of your config/app.php configuration file:

'Checkout'=>TraknPay\Checkout\Facades\Checkout::class

Configuration

Publish the configuration:

php artisan vendor:publish

config/traknpay_payment_gateway.php

This is the configuration file that Laravel will publish into your config directory.

Open this file and provide values in following parameters

'api_key'
'app_url'
'salt'
'mode'

'app_url' is to be set to your server url, by default it is set to http://localhost:8000, do not add '/' at end of this url

'api_key' and 'salt' values are provided by Traknpay.

'mode' value can be either TEST or LIVE.

For the rest of the parameters that need to be sent , please refer the traknpay integration document TraknPay_Integration_Guide_Ver1.4.1.

Usage

To post the payment parameters to traknpay gateway, on clicking checkout button do following.

Handling Response

There is an inbuilt response handler but that does not do much, apart from showing if the transaction was Successful or Failed. To handle the response on your own, use the following steps.

  1. Create a controller (e.g. PaymentController)

  2. Create a function within this controller(e.g. handleResponse)

  3. In handleResponse function, perform hash check and then update your payment status.

  4. Add the new route to web.php file.

  5. Add this route in exception list of VerifyCsrfToken in the middleware.

  6. Update app_url and return_url in config/traknpay_payment_gateway.php.

All versions of checkout with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.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 traknpay/checkout contains the following files

Loading the files please wait ....