PHP code example of biscolab / laravel-gestpay

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

    

biscolab / laravel-gestpay example snippets


'providers' => [
    ...
    Biscolab\Gestpay\GestpayServiceProvider::class,
];

'aliases' => [
    ...
    'Gestpay' => Biscolab\Gestpay\Facades\Gestpay::class,
];

return [
    'shopLogin'      => 'YOUR_SHOP_LOGIN',
    'uicCode'        => 'CURRENCY_CODE',
    'test'           => true // supported: true|false 
];

gestpay()->pay($amount, $shopTransactionId);

    // e.g.
    Route::get('/gestpay_callback/{status}', ['uses' => 'GestpayController@gestpayCallback']);

public function gestpayCallback($status){
    ...
    $gestpay_response = gestpay()->checkResponse();
}
su
php artisan vendor:publish --provider="Biscolab\Gestpay\GestpayServiceProvider"