2017 © Pedro Peláez
 

library indipay

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo, ZapakPay, Mocker

image

softon/indipay

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo, ZapakPay, Mocker

  • Friday, December 8, 2017
  • by softon
  • Repository
  • 3 Watchers
  • 42 Stars
  • 8,564 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 36 Forks
  • 5 Open issues
  • 19 Versions
  • 23 % Grown

The README.md

IndiPay

The Laravel 5+ Package for Indian Payment Gateways. Currently supported gateway: CCAvenue, PayUMoney, EBS, CitrusPay ,ZapakPay (Mobikwik), Paytm, Mocker, (*1)

For Laravel 4.2 Package Click Here, (*2)

Installation

Step 1: Install package using composer, (*3)


    composer require softon/indipay

, (*4)

Step 2: Add the service provider to the config/app.php file in Laravel (Optional for Laravel 5.5+), (*5)


    Softon\Indipay\IndipayServiceProvider::class,

, (*6)

Step 3: Add an alias for the Facade to the config/app.php file in Laravel (Optional for Laravel 5.5+), (*7)


    'Indipay' => Softon\Indipay\Facades\Indipay::class,

, (*8)

Step 4: Publish the config & Middleware by running in your terminal, (*9)


    php artisan vendor:publish --provider="Softon\Indipay\IndipayServiceProvider" 

, (*10)

Step 5: Modify the app\Http\Kernel.php to use the new Middleware. This is required so as to avoid CSRF verification on the Response Url from the payment gateways. You may adjust the routes in the config file config/indipay.php to disable CSRF on your gateways response routes., (*11)

NOTE: You may also use the new VerifyCsrfToken middleware and add the routes in the $except array., (*12)

App\Http\Middleware\VerifyCsrfToken::class,

to, (*13)

App\Http\Middleware\VerifyCsrfMiddleware::class,

Usage

Edit the config/indipay.php. Set the appropriate Gateway parameters. Also set the default gateway to use by setting the gateway key in config file. Then in your code...
, (*14)

 use Softon\Indipay\Facades\Indipay;  

Initiate Purchase Request and Redirect using the default gateway:-, (*15)

      /* All Required Parameters by your Gateway will differ from gateway to gateway refer the gate manual */

      $parameters = [
        'transaction_no' => '1233221223322',
        'amount' => '1200.00',
        'name' => 'Jon Doe',
        'email' => 'jon@doe.com'
      ];

      $order = Indipay::prepare($parameters);
      return Indipay::process($order);

Please check for the required parameters in your gateway manual. There is a basic validation in this package to check for it., (*16)

You may also use multiple gateways:-, (*17)

      // gateway = CCAvenue / PayUMoney / EBS / Citrus / InstaMojo / ZapakPay / Paytm / Mocker

      $order = Indipay::gateway('Paytm')->prepare($parameters);
      return Indipay::process($order);

Get the Response from the Gateway (Add the Code to the Redirect Url Set in the config file. Also add the response route to the remove_csrf_check config item to remove CSRF check on these routes.):-, (*18)

 
    public function response(Request $request)
    
    {
        // For default Gateway
        $response = Indipay::response($request);
        
        // For Otherthan Default Gateway
        $response = Indipay::gateway('NameOfGatewayUsedDuringRequest')->response($request);

        dd($response);
    
    }  

The Indipay::response will take care of checking the response for validity as most gateways will add a checksum to detect any tampering of data., (*19)

Important point to note is to store the transaction info to a persistant database before proceding to the gateway so that the status can be verified later., (*20)

Payment Verification

From version v1.0.12 Indipay has started implementing verify method in some gateways so that the developer can verify the payment in case of pending payments etc., (*21)

    $order = Indipay::verify([
        'transaction_no' => '3322344231223'
    ]);

The parameters to be passed, again depends on Gateway used., (*22)

Verify Feature Currently Supported in : Paytm, Mocker, (*23)

The Versions

08/12 2017

v1.1.3b

1.1.3.0-beta

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo, ZapakPay, Mocker

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue instamojo ebs indian payment gateways citruspay mocker

08/12 2017

dev-master

9999999-dev

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo, Mocker

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue instamojo ebs indian payment gateways citruspay mocker

05/12 2017

v1.1.2

1.1.2.0

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo, Mocker

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue instamojo ebs indian payment gateways citruspay mocker

05/12 2017

v1.1.1

1.1.1.0

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo, Mocker

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue instamojo ebs indian payment gateways citruspay mocker

29/11 2017

v1.1.0

1.1.0.0

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo, Mocker

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue instamojo ebs indian payment gateways citruspay mocker

03/04 2017

v1.0.11

1.0.11.0

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue instamojo ebs indian payment gateways citruspay

18/07 2016

v1.0.10

1.0.10.0

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue instamojo ebs indian payment gateways citruspay

22/06 2016

v1.0.9

1.0.9.0

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue instamojo ebs indian payment gateways citruspay

08/04 2016

v1.0.8

1.0.8.0

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue indian payment gateways

06/04 2016

v1.0.7

1.0.7.0

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue indian payment gateways

06/04 2016

dev-laravel4

dev-laravel4

The Laravel 4.2 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay

  Sources   Download

MIT

The Requires

 

by Shiburaj

payumoney ccavenue laravel 4.2 ebs indian payment gateways citruspay

06/04 2016

v0.1.1

0.1.1.0

The Laravel 4.2 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay

  Sources   Download

MIT

The Requires

 

by Shiburaj

payumoney ccavenue laravel 4.2 ebs indian payment gateways citruspay

06/04 2016

v0.1.0

0.1.0.0

The Laravel 4.2 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay

  Sources   Download

MIT

The Requires

 

by Shiburaj

payumoney ccavenue laravel 4.2 ebs indian payment gateways citruspay

30/12 2015

v1.0.6

1.0.6.0

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue indian payment gateways

14/11 2015

v1.0.5

1.0.5.0

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 payumoney ccavenue indian payment gateways

14/08 2015

v1.0.4

1.0.4.0

The Laravel 5 Package for Indian Payment Gateways

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 ccavenue indian payment gateways

13/08 2015

v1.0.3

1.0.3.0

The Laravel 5 Package for Indian Payment Gateways

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 ccavenue indian payment gateways

09/08 2015

v1.0.2

1.0.2.0

The Laravel 5 Package for Indian Payment Gateways

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 ccavenue indian payment gateways

09/08 2015

v1.0.1

1.0.1.0

The Laravel 5 Package for Indian Payment Gateways

  Sources   Download

MIT

The Requires

 

by Shiburaj

laravel 5 ccavenue indian payment gateways