PHP code example of icode / geepay-laravel

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

    

icode / geepay-laravel example snippets


use Geepay\Facades\Geepay;

// Get token
$token = Geepay::auth()->generateAccessToken();

// Disbursement
$response = Geepay::disburse()->disburse($token, '260972439891', 100, 'Test pay', uniqid());

// Collection
$response = Geepay::collect()->requestToPay($token, '260972439891', 1000, uniqid());

// Checkout
$response = Geepay::checkout()->createSession($token, 1000, 'ORD-123', 'Nagato', '[email protected]', uniqid());

bash
php artisan vendor:publish --tag=config