Answer the question
In order to leave comments, you need to log in
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);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question