The Google Checkout postback request is a raw JSON post, not a typical HTTP post (which is what would be needed in order to populate the $_POST
array). In order to read the contents of the postback request, you must get the raw post body, and json_decode
it.
This should do the trick: json_decode(file_get_contents('php://input'))