PHP code example of laravel-paynamics / paygate

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

    

laravel-paynamics / paygate example snippets


$client = new \Laravel\Paynamics\Paygate\Client([
    'merchant_id'     => 'YOUR MERCHANT ID,
    'merchant_key'    => 'YOUR MERCHANT KEY',
    'sandbox'         => (true|false),
    'sandbox_url'     => 'TESTING URL',
    'production_url'  => 'PRODUCTION URL',
]);

'Paygate' => Laravel\Paynamics\Paygate\Laravel\Facades\Paygate::class

php artisan vendor:publish --tag=config