Closed ariesclark closed 4 years ago
$patreonEvent = $_SERVER['HTTP_X_PATREON_EVENT'];
$patreonSignature = $_SERVER['HTTP_X_PATREON_SIGNATURE'];
$input = @file_get_contents("php://input");
$event_json = json_decode($input);
file_put_contents("post.txt", json_encode($event_json, JSON_PRETTY_PRINT));
Here's my code for testing if it helps anyone. Still looking into how to validate with the HMAC-MD5
Regarding this, I've tried doing this myself and in my file, all it says is NULL. I'm still confused on how I'm supposed to obtain the webhook information.
Originally posted by @RubyTheRose in https://github.com/Patreon/patreon-php/issues/20#issuecomment-440346991