Answer the question
In order to leave comments, you need to log in
How to send an XML response (POST) to another server?
Good day, comrades. I am engaged in the integration of Ya.Money, namely Ya.Kassa. Some problems have arisen. TP is silent, the time is late. What is the essence of the problem: I
connected the form, the amount is formed correctly, but when paying for the order already in the service, error 0023 is returned. I understand that the order does not pass the check(checkOrder) on the side of my store.
The manual says that you need to send a response to check the order in the form of XML. How can you send it? And which URL exactly?
Though, an essence of a question in formation of XML of the answer.
Thank you.
Answer the question
In order to leave comments, you need to log in
$xml = '<?xml version="1.0" encoding="UTF-8"?>
<checkOrderResponse performedDatetime ="' . date( 'c' ) . '" code="' . $code . '" invoiceId="' . $post['invoiceId'] . '" shopId="' . $post['shopId'] . '"/>';
header( 'Content-type:application/xml;' );
echo $xml;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question