PHP code example of softon / indipay

1. Go to this page and download the library: Download softon/indipay library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

softon / indipay example snippets

 
      /* 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' => '[email protected]'
      ];
      
      $order = Indipay::prepare($parameters);
      return Indipay::process($order);
 
      // gateway = CCAvenue / PayUMoney / EBS / Citrus / InstaMojo / ZapakPay / Paytm / Mocker
      
      $order = Indipay::gateway('Paytm')->prepare($parameters);
      return Indipay::process($order);

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