O
O
Oklick2017-02-14 22:59:09
Yii
Oklick, 2017-02-14 22:59:09

How to implement http notification for yandex payment in Yii2?

Good day.
There was a following problem. When connecting an HTTP payment notification on Yandex money "Forms and buttons for collecting money". Yandex is unable to send a request using the link.
Checking the receipt of a request is implemented as follows: when someone knocks on the url: my_url_site/validyandexbuy, then php writes the string and data that came via POST to the textbox. If you pass post through Jquery while on the site itself, the parameters come. If from another site - writes 400 bad request. When I make a test http request to the required url through Yandex, the same thing happens, as I understand it.
I tried to do the same, but on a self-written site (without Yii2) everything is fine. The request passes, POST is written. As I understand it, we do not skip the request in Yii2.
Help deal with this. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Sharonov, 2017-02-14
@k_sharonov

Perhaps you have a ban on POST request to action in behavior. Read more here:
www.yiiframework.com/doc-2.0/yii-filters-verbfilte...

M
melnikov_m, 2017-02-14
@melnikov_m

See if the csrf token check setting is enabled in the post, perhaps because of it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question