PHP code example of maryamnbyn / vandar-laravel

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

    

maryamnbyn / vandar-laravel example snippets


 'vandar' => [
        'api' => 'your api key',
        'test' => false
    ]

use Vandar\Laravel\Facade\Vandar;

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

Vandar::redirect($token);
Vandar::redirectUrl($token);

$token=$_GET['token']; // You can also use $request->get('token') in the scope of a laravel controller
$result = Vandar::verify($token);

$result = Vandar::requestInfo($token);