Processing notifications
Don't forget to specify the "platform ID" and the "Secret key."
PHP:
$apikey = '1111-2222-3333-4444-5555' ; // Secret key
$hash = $_POST['hash'];
$data = [
'platform_id' => (int) $_POST['platform_id'], // Platform ID
'payment_id' => (int) $_POST['payment_id'], // currency ID
'order_id' => $_POST['order_id'], // Payment ID of your platform
'amount' => $_POST['amount'], // transaction amount
'txhash' => $_POST['txhash'], // Hash or transaction ID. You can find the transaction ID in the PassimPay transaction history in your account.
'address_from' => $_POST['address_from'], // sender address
'address_to' => $_POST['address_to'], // recipient address
'fee' => $_POST['fee'], // network fee
];
if (isset($_POST['confirmations']))
{
$data['confirmations'] = $_POST['confirmations']; // number of network confirmations (Bitcoin, Litecoin, Dogecoin, Bitcoin Cash)
}
if (isset($_POST['tag']))
{
$data['tag'] = $_POST['tag']; // For Ripple XRP
}
$payload = http_build_query($data);
if (!isset($hash) || hash_hmac( 'sha256' , $payload, $apikey) != $hash)
{
return false;
}
// payment credited
// your code...