\n");
// echo ("");
}
else if (strcmp ($lines[0], "FAIL") == 0) {
// log for manual investigation
header("Location: http://www.sportsaction365.com");
exit;
}
}
?>
\n";
// print "ResponseReasonText - $ResponseReasonText \n";
// print "ResponseReasonCode - $ResponseReasonCode \n";
// print "AVS - $AVS \n";
// Test to see if this is a test transaction.
if ($TransID == 0 && $ResponseCode == 1)
{
// If so, print it to the screen, so we know that the transaction will not be processed.
}
// Test to see if the transaction resulted in Approvavl, Decline or Error
if ($ResponseCode == 1)
{
// This transaction has been approved.
}
else if ($ResponseCode == 2)
{
// This transaction has been declined.
header("Location: http://www.sportsaction365.com/purchaseerror.php");
exit;
}
else if ($ResponseCode == 3)
{
// There was an error processing this transaction.
header("Location: http://www.sportsaction365.com/purchaseerror.php");
exit;
}
else if ($ResponseCode == 4)
{
// There was an error processing this transaction.
header("Location: http://www.sportsaction365.com/purchaseerror.php");
exit;
}
?>
SportsAction365 Account Setup