1. Go to this page and download the library: Download khamdullaevuz/laravel-payme 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/ */
'providers' => [
// Other Service Providers
Khamdullaevuz\Payme\PaymeServiceProvider::class,
],
'aliases' => [
// Other Aliases
'Payme' => Khamdullaevuz\Payme\Facades\Payme::class,
],
use Khamdullaevuz\Payme\Facades\Payme;
use Khamdullaevuz\Payme\Http\Middleware\PaymeCheck;
use Illuminate\Http\Request;
// Other Routes
Route::any('/payme', function (Request $request) {
return Payme::handle($request);
})->middleware(PaymeCheck::class);