I’m trying to receive a JSON POST on a payment interface website, but I can’t decode it.
When I print :
echo $_POST;
I get:
Use $HTTP_RAW_POST_DATA instead of $_POST.
$HTTP_RAW_POST_DATA
$_POST
It will give you POST data as is.
You will be able to decode it using json_decode() later.
json_decode()