📑Webhook / Callback
Last updated
<?php
$receivedWebhook = json_decode(file_get_contents('php://input'));
$webhook_key = 'Your_personal_webhook_key';
$timestamp = $receivedWebhook['timestamp'];
$txn = $receivedWebhook['txn'];
$signature = md5($txn . '|' . $timestamp . '|' . $webhook_key);
if($signature == $receivedWebhook['signature']){
// Execute your code on success
}
?>