Had trouble on getting return for IPN for paypal so here are the code that might help
So I created a var_dump POST to error log and wrote it down to a text file.
tried error_log($_POST) but it doesn’t work…
There’s this test tool from paypal sandbox which might help it test the post
$c = ob_get_contents();
$fp = fopen(“static/log/paypal_notify.txt”, “a”);
Another Method on getting post or get is