1. Go to this page and download the library: Download restoore/laravel-systempay 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/ */
//create a Systempay object class with your site id in parameter. Note that it will automatically get your configuration in config/systempay.php
$systempay = App::make('systempay', ['site_id' => '11111']);
//add some parameters
$systempay->set_amount(1500)
->set_trans_id(1112441)
->set_order_info2('New customer !');
//create the signature
$systempay->set_signature();
//create html systempay call form
$payment_form = $systempay->get_form('<button class="btn btn-lg btn-primary btn-payment" type="submit">Valider et payer</button>');