PHP code example of sepayvn / laravel-sepay-bankhub

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

    

sepayvn / laravel-sepay-bankhub example snippets


return [
    'api_key' => env('SEPAY_BANKHUB_API_KEY'),
    'api_secret' => env('SEPAY_BANKHUB_API_SECRET'),
    'api_url' => env('SEPAY_BANKHUB_API_URL', 'https://partner-api.sepay.vn/merchant/v1'),
];


$sePayBankhubService = new SePay\SePayBankhub\Services\SePayBankhubService();
$sePayBankhubService->getBanks();
bash
php artisan vendor:publish --tag="laravel-sepay-bankhub-config"