zzzaaa / laravel-yandex-money-http-notify
There is no license information available for the latest version (v1.0.1) of this package.
v1.0.1
2017-03-08 16:25 UTC
This package is not auto-updated.
Last update: 2025-02-05 22:34:35 UTC
README
This package helps to validate yandexMoney http notification. Laravel Middleware stay front of your API and allow only trusted notifications.
Install
composer require zzzaaa/laravel-yandex-money-http-notify
install Middleware
// app/Http/Kernel.php protected $routeMiddleware = [ ... 'yandexmoney.hash' => \Zzzaaa\LaravelYandexMoneyHttpNotify\Middleware\YandexMoneyHash::class, ];
##Add secret key
//config/services.php ... 'yandex' => [ 'notification_secret' => env('YANDEX_SECRET','SECRET KEY') ],
Add middleware to routes
//routes/api.php Route::post('/payment', 'Api\PaymentsController@store')->middleware('yandexmoney.hash');