D
D
Denis Samofalov2021-05-05 17:32:50
Programming
Denis Samofalov, 2021-05-05 17:32:50

Atol Web-server, check receipt, why doesn't the result come to callback?

curl request data 127.0.0.1:16732/requests

Array
(
    [uuid] => 40af13f6-b8db-4d5c-86ec-e91d9bb48841
    [request] => Array
        (
            [operator] => Array
                (
                    [name] => Кассир
                )

            [payments] => Array
                (
                    [0] => Array
                        (
                            [type] => cash
                            [sum] => 50
                        )

                )

            [taxationType] => patent
            [electronically] => 1
            [items] => Array
                (
                    [0] => Array
                        (
                            [name] => Техническое обслуживание
                            [price] => 50
                            [quantity] => 1
                            [type] => position
                            [amount] => 50
                            [tax] => Array
                                (
                                    [type] => none
                                )

                        )

                )

            [type] => sell
        )
    [callbacks] => Array
        (
            [resultUrl] => https://app.domain.ru/kkt_task_ready.php
        )
)


kkt_task_ready.php
<?php 
$json = file_get_contents('php://input');

$file = fopen(ROOT.'/kkt_logs.txt', 'a');
fwrite($file, "\n". $json);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question