1. Go to this page and download the library: Download startupmasters/laravel-epay 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/ */
return [
'submit_url' => 'URLToSend',
'secret' => 'Here you must type your client secret key from epay site', // client secret
'client_id' => 'Here you must type your client id from epay site', // client id
'expire_days' => 1, // expire time for transations in days
'success_url' => 'SuccessURL', // where to return user after transaction complete
'cancel_url' => 'FailURL', // return user to this url if transaction is canceled
];
$epay = Epay::generateInputFields([
'invoice' => 'InvoiceID', // invoice ID
'amount' => 'amount', // amount(not as a string)
'descr' => 'Some about order' // info about order
],'pageType');
return view('payment')->with('epay', $epay);
bash
php artisan vendor:publish --tag=config
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.