В моем коде есть этот PHP-код (чтобы я мог видеть, какие входящие данные проходят при покупке) :
Код: Выделить всё
require_once __DIR__ . '/vendor/autoload.php';
require_once 'config.php';
ini_set("error_log", "appsumo.errors.log.txt");
$data = file_get_contents('php://input');
if ($data == "") die("No data");
print_r($data);
$file = fopen('appsumo-webhook-data.txt', "a");
fwrite($file, $data.PHP_EOL.PHP_EOL);
fclose($file);
Код: Выделить всё
Webhook URL: Pre-validate by receiving a POST request with a field called test in the body.
This URL must return a 200 OK with a JSON response indicating success = true and the event type it received.
For the initial test, you must respond to/with the following event types:
activate
deactivate
purchase (optional)
Подробнее здесь: https://stackoverflow.com/questions/790 ... or-appsumo
Мобильная версия