zzzaaa / laravel-yandex-money-http-notify by zzzaaa

181
2
2
Package Data
Maintainer Username: zzzaaa
Maintainer Contact: alexey@mailovka.ru (Alexey Raksha)
Package Create Date: 2017-03-08
Package Last Update: 2017-03-08
Home Page:
Language: PHP
License: Unknown
Last Refreshed: 2025-02-09 15:00:48
Package Statistics
Total Downloads: 181
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 1
Total Open Issues: 1

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