I have this block of code which getting executed twice when the post hits from the payment gateway.Any help will be welcome on this issue. I have already checked the code there is no 404 resuest to any script.
$stmt = $dbAdapter->prepare('EXEC MyProcedure ?,?,?,?,?,?,?,?');
$stmt->bindParam(1,$id, PDO::PARAM_INT);
$stmt->bindParam(2,$Transaction, PDO::PARAM_STR);
$stmt->bindParam(3,$Person_id, PDO::PARAM_STR);
$stmt->bindParam(4,$Amount);
$stmt->bindParam(5,$OrderID, PDO::PARAM_STR);
$stmt->bindParam(6,$BankClientID, PDO::PARAM_STR);
$stmt->bindParam(7,$Transaction_Time, PDO::PARAM_STR);
$stmt->bindParam(8,$status, PDO::PARAM_INT);
$id = $stmt->execute();