PHP code example of rushabhmishrarmz / indipay

1. Go to this page and download the library: Download rushabhmishrarmz/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/ */

    

rushabhmishrarmz / indipay example snippets


use Indipay\Indipay\Facades\Indipay;

/* All Required Parameters by your Gateway will differ from gateway to gateway refer the gate manual */
    
$parameters = [
'transaction_no' => '784521221245',
'amount' => '1500.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('CCAvenue')->prepare($parameters);
return Indipay::process($order);

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

    dd($response);
}  
bash
php artisan vendor:publish --provider="Indipay\Indipay\IndipayServiceProvider"