1. Go to this page and download the library: Download llabbasmkhll/laravel-zibal 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/ */
llabbasmkhll / laravel-zibal example snippets
return [
'merchant' => 'zibal',
];
use Llabbasmkhll\LaravelZibal\Facades\Zibal;
Zibal::init(
1000000, //ack - can be either route name or a valid url starting with http or https
['key' => 'value'], //optional callback_params - will be passed to callback as query params , works only when route name passed to callback
'description', //optional description - additional data , good for various reports
123, //optional orderId - id of clients order (eg $invoice->id) , will be passed back to callback
'09366217515', //optional mobile - clients mobile number
['000000000000'] //optional allowedCards - array of allowed card numbers
)->getResponse();