Logo

Processing notifications

Don't forget to specify the "platform ID" and the "Secret key."

01

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...
 

WE USE COOKIE FILES

We use cookie files to improve the website's operation and provide personalized offers and services. They allow us to collect and analyze users' activity on the website and improve our service. By continuing to use the PassimPay website, you automatically accept our use of cookies. If you disagree with our use of cookies, please do not visit the PassimPay website.