1. Go to this page and download the library: Download dosarkz/laravel-paybox 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/ */
dosarkz / laravel-paybox example snippets
use Dosarkz\Paybox\Facades\Paybox;
class OrdersController extends Controller
{
public function pay(Order $order)
{
...
return Paybox::generate([
'pg_order_id' => '',
'pg_merchant_id' => '',
'pg_amount' => 100,
'pg_description' => "Test",
'pg_salt' => '',
'pg_check_url' =>'',
'pg_result_url' => '',
]);
}
}