<td bgcolor="#CCCCCC"><span class="subhd">Account number</span></td> <td bgcolor="#CCCCCC"><span class="subhd">Routing code</span></td> <td bgcolor="#CCCCCC"><span class="subhd">ATM Verification result</span></td> </tr> <?php for ($iLoop = 0; $iLoop <= $count_num; $iLoop++) { $trans_id = isset($HTTP_POST_VARS["chkid{$iLoop}"]) ? quote_smart($HTTP_POST_VARS["chkid{$iLoop}"]) : ""; $fname = isset($HTTP_POST_VARS["first_name{$iLoop}"]) ? quote_smart($HTTP_POST_VARS["first_name{$iLoop}"]) : ""; $lname = isset($HTTP_POST_VARS["last_name{$iLoop}"]) ? quote_smart($HTTP_POST_VARS["last_name{$iLoop}"]) : ""; $transtype = isset($HTTP_POST_VARS["trans_type{$iLoop}"]) ? quote_smart($HTTP_POST_VARS["trans_type{$iLoop}"]) : ""; $tot_amount = isset($HTTP_POST_VARS["total_amt{$iLoop}"]) ? quote_smart($HTTP_POST_VARS["total_amt{$iLoop}"]) : ""; $account_no = isset($HTTP_POST_VARS["account_numb{$iLoop}"]) ? quote_smart($HTTP_POST_VARS["account_numb{$iLoop}"]) : ""; $account_type = isset($HTTP_POST_VARS["account_type{$iLoop}"]) ? quote_smart($HTTP_POST_VARS["account_type{$iLoop}"]) : ""; $bank_routing_no = isset($HTTP_POST_VARS["routing_code{$iLoop}"]) ? quote_smart($HTTP_POST_VARS["routing_code{$iLoop}"]) : ""; if ($trans_id != "") { $return_bank_result = func_bank_integration_result($fname, $lname, $tot_amount, $account_type, $account_no, $bank_routing_no); $return_bank_resultarray = split(",", $return_bank_result); if ($return_bank_resultarray[0] == "A") { $return_bank_resultarray1 = "Approved"; } else { if ($return_bank_resultarray[0] == "D") { $return_bank_resultarray1 = "Declined"; } else { $return_bank_resultarray1 = "Error"; } } ?> <tr> <td bgcolor="#E2E2E2" height="30"><font size="1" face="Verdana" ><?php echo $trans_id;
$country = isset($HTTP_POST_VARS['country']) ? Trim($HTTP_POST_VARS['country']) : ""; $state = isset($HTTP_POST_VARS['state']) ? Trim($HTTP_POST_VARS['state']) : ""; $zip = isset($HTTP_POST_VARS['zip']) ? Trim($HTTP_POST_VARS['zip']) : ""; $phonenumber = isset($HTTP_POST_VARS['phonenumber']) ? Trim($HTTP_POST_VARS['phonenumber']) : ""; $chequenumber = isset($HTTP_POST_VARS['chequenumber']) ? Trim($HTTP_POST_VARS['chequenumber']) : ""; $chequetype = isset($HTTP_POST_VARS['chequetype']) ? Trim($HTTP_POST_VARS['chequetype']) : ""; $amount = isset($HTTP_POST_VARS['amount']) ? Trim($HTTP_POST_VARS['amount']) : ""; $accounttype = isset($HTTP_POST_VARS['accounttype']) ? Trim($HTTP_POST_VARS['accounttype']) : ""; $bankroutingcode = isset($HTTP_POST_VARS['bankroutingcode']) ? Trim($HTTP_POST_VARS['bankroutingcode']) : ""; $bankaccountno = isset($HTTP_POST_VARS['bankaccountno']) ? Trim($HTTP_POST_VARS['bankaccountno']) : ""; if ($accounttype == "checking") { $account_type = "C"; } else { $account_type = "S"; } $ret_integration_result = func_bank_integration_result($firstname, $lastname, $amount, $account_type, $bankaccountno, $bankroutingcode); $ret_integration_resultarray = split(",", $ret_integration_result); if ($ret_integration_resultarray[0] == 'A') { $bank_return = "Success."; $msgtodisplay = "ATM Verification Success from bank."; } else { if ($ret_integration_resultarray[0] == 'D') { $bank_return = "Declined."; $msgtodisplay = "ATM Verification declined from bank <br> due to {$ret_integration_resultarray['1']}."; } else { if ($ret_integration_resultarray[0] == 'E') { $bank_return = "Error."; $msgtodisplay = "ATM Verification processing error."; } else { $bank_return = "Error."; $msgtodisplay = "System processing error.";