A
A
andre77772016-08-09 17:48:07
Yandex
andre7777, 2016-08-09 17:48:07

How to send a notification from Ya.Money?

Yandex.Money - after payment - an HTTP notification about an incoming payment is configured.
There was a site on pure php - everything worked.
Moved to laravel 5.2 - unable to accept notification.
those. in the address bar I prescribe site.ru/ypay? ... here are all the parameters ... - and everything works,
but when Yandex sends a notification - it does not work.
in laravel the router is written like this: Route::any('/yres','[email protected]');
I think it's in the format of the headers from Yandex and the protection of laravela - how to win?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Pochepko, 2016-08-09
@andre7777

What method does it send? POST? Then you need to remove the csrf check. Read the documentation laravel.su/docs/5.0/routing#csrf-protection

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question