M
M
MrFallen2019-03-15 12:00:02
RESTful API
MrFallen, 2019-03-15 12:00:02

How to send a response 200 Yandex Checkout?

Good afternoon, I'm trying to set up Yandex Checkout integration with my Laravel project, I can already say the final steps, but I can't send code 200 in response to a Yandex Checkout notification. This is necessary so that the user does not receive extra charges on the account balance on the site. There is no sample response code in PHP in the documentation.
I tried to send responses in the following ways:

return response('Done!', 200)->header('Content-Type', 'text/plain');
return response()->setStatusCode(200, 'Done!');
return response->json(['message' => 'Done!'], 200);
return abort(200, 'Done!');
return abort(200);
return http_response_code(200);

But none of this seems to work. What could be the reason? How to send a response?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Crash XD, 2019-03-15
@MrFallen

I send like this
Everything works
Url exactly the one specified in the Yandex settings?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question