dbhosale / indipay by dbhosale

The Laravel 5 Package for Indian Payment Gateways. Currently supported gateways: CCAvenue, PayUMoney, EBS, CitrusPay, InstaMojo
125
1
1
Package Data
Maintainer Username: dbhosale
Maintainer Contact: dattatray.bhosale@gmail.com (Datta Bhosale)
Package Create Date: 2017-09-03
Package Last Update: 2017-09-06
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-15 15:08:42
Package Statistics
Total Downloads: 125
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 1
Total Watchers: 1
Total Forks: 1
Total Open Issues: 0

IndiPay

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

For Laravel 4.2 Package Click Here

Step 2: Add the service provider to the config/app.php file in Laravel

Step 3: Add an alias for the Facade to the config/app.php file in Laravel

Step 4: Publish the config & Middleware by running in your terminal

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.

to

Edit the config/indipay.php. Set the appropriate Gateway and its parameters. Then in your code...

Initiate Purchase Request and Redirect using the default gateway:-

      /* All Required Parameters by your Gateway */
      
      $parameters = [
      
        'tid' => '1233221223322',
        
        'order_id' => '1232212',
        
        'amount' => '1200.00',
        
      ];
      
      $order = Indipay::prepare($parameters);
      return Indipay::process($order);

Initiate Purchase Request and Redirect using any of the configured gateway:-

      /* All Required Parameters by your Gateway */
      
      $parameters = [
      
        'tid' => '1233221223322',
        
        'order_id' => '1232212',
        
        'amount' => '1200.00',
        
      ];
      
      // gateway = CCAvenue / PayUMoney / EBS / Citrus / InstaMojo
      
      $order = Indipay::gateway('NameOfGateway')->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.):-