This is probably a simple question. I am trying to get the verification code (
https://docs.clover.com/build/webhooks/#verificati... from the Webhook Post request. Here is the code that I have in my PHP file.
$file = 'verification.txt';
$newdata = json_decode($_REQUEST);
$current = 'data: ' . json_encode($newdata);
file_put_contents($file, $current);
Typically, this would write the contents of a post, get, or request to a file in the same directory as the PHP file. I can confirm that the PHP file is being reached because the verification.txt file is created, but the $_REQUEST just appears as empty brackets ([ ]). I tried the same for $_POST, but that was empty as well. How can I easily retrieve the verification code? Is there a better way?
Thanks for the help!