Answer the question
In order to leave comments, you need to log in
Space at the beginning of Laravel xml output, where does it come from?
I connect Yandex.Checkout payment to the site on Laravel.
When checking the payment, you need to return the response in xml. I return as follows:
$contents = '<?xml version="1.0" encoding="UTF-8"?><checkOrderResponse performedDatetime="'.date('c').'" code="0" invoiceId="123" shopId="123"/>';
$response = Response::make($contents, 200);
$response->header('Content-Type', 'text/xml');
return $response;
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