I am using ipn sandbox for checking some processes:
$business = $_POST['business'];
$receiver_email = $_POST['receiver_email'];
$receiver_id = $_POST['receiver_id'];
$txn_id = $_POST['txn_id'];
$txn_type = $_POST['txn_type'];
$verify_sign = $_POST['verify_sign'];
$stmt = $dbh->prepare("INSERT INTO transactions (business, receiver_email, receiver_id, txn_id,
txn_type, verify_sign)
VALUES (?, ? , ? , ? , ? , ?)");
$stmt->bindParam(1, $value1);
$stmt->bindParam(2, $value2);
$stmt->bindParam(3, $value3);
$stmt->bindParam(4, $value4);
$stmt->bindParam(5, $value5);
$stmt->bindParam(6, $value6);
$value1 = $business;
$value2 = $receiver_email;
$value3 = $receiver_id;
$value4 = $txn_id;
$value5 = $txn_type;
$value6 = $verify_sign;
$stmt->execute();
So this is part of my ipn-script, but it doesnt get processed, there is nothing in my table. I cant echo or print the error, cause its ipn..but: I could write error in this logfile:
$logfile = fopen("logfile.txt", "a");
$error = date("d.m.Y H:i:s")." - ".$errormsg.".\r\n";
fwrite($logfile, $error);
fclose($logfile);
But what to write there, anybody could help me? greetings