Sample Postback

$secret_password = 'ENTER YOUR SECRET PASSWORD HERE';

$password = $_REQUEST['pwd'];

$credit = $_REQUEST['c'];

$user = trim($_REQUEST['u']);

$type = trim($_REQUEST['t']);

$status = trim($_REQUEST['s']);

$transaction_id = trim($_REQUEST['transaction_id']);

$publisher_payout = trim($_REQUEST['payout']);

if( $password === $secret_password )

{

if($status === 1)

{

if($type === 1)

{

//Credit Cash to user

//Update on Database

}

else

{

//Credit Point to user

//Update on Database

}

exit("OK");

}

else

{

if($type === 1)

{

//Debit Cash

//Update on Database

}

else

{

//Debit Point

//Update on Database

}

exit("OK");

}

}

die("Failed");

If the postback is not working. Make sure the postback URL set at account is correct. Check the secret code is entered at the postback file / admin panel.

If you are using transaction_id to detect unique transaction check status code. In case of a reversal, transaction_id will be same status will be changed.