<?php
// Read incoming data
$rawData = file_get_contents("php://input");
$data = json_decode($rawData, true);

// For testing
file_put_contents("/tmp/ipn_log.txt", print_r($data, true), FILE_APPEND);

// Send 200 OK back to NOWPayments
http_response_code(200);
