PHP code example of rfmhb2 / vandar-laravel

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

    

rfmhb2 / vandar-laravel example snippets

 
 'vandar' => [
        'api' => '6cc20e798ba30a2f352c0bf7ebfed11158af14b7',
        'test' => false
    ]

use Vandar\Laravel\Facade\Vandar;

$result = Vandar::request($amount, $callback, $mobile = null, $factorNumber = null, $description = null)


Vandar::redirect();
//or 
Vandar::redirectUrl();

$token=$_GET['token'];
$result = Vandar::verify($token);