Skip to content

zzzaaa/laravel-yandex-money-http-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Laravel Yandex Money Http Notification

This package helps to validate yandexMoney http notification. Laravel Middleware stay front of your API and allow only trusted notifications.

Notification p2p incoming

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');

About

Laravel Middleware check notifications from YandexMoney

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages