GetFirstRowOfSet($strSQL, &$set_Cid, SQL_GET_ROW_COUNT, "Get Cid Requirement"); //$f_strRequireCid = $set_Cid[0]; $strSQL = "SELECT * FROM tblTaxTable"; $sclTaxTblResultID = 0; $g_objDB->GetAllRows($strSQL, &$ascTaxTblResult, &$blnMoreRows, SQL_GET_ROW_COUNT, &$sclTaxTblResultID, "Get Tax Table data"); if((!$g_objDB->HasError()) && (($intTaxRows = $g_objDB->GetRowCount($sclTaxTblResultID)) > 0)) $f_strSalesTax = "-"; elseif(isset($fldComputeTaxes) && ($fldComputeTaxes == 'N')) $f_strSalesTax = "-"; if($f_strRegion == "") $f_strRegion = $f_strOtherRegion; if($f_strBillRegion == "") $f_strBillRegion = $f_strBillOtherRegion; if($f_strBillCountry == "") $f_strBillCountry = $f_strCountry; if($f_strCountry != "") { $arrCountry = explode(":", $f_strCountry); $arrBillCountry = explode(":", $f_strBillCountry); $f_strCountry2 = $arrCountry[0]; $f_strCountry = $arrCountry[1]; $f_strBillCountry2 = $arrBillCountry[0]; $f_strBillCountry = $arrBillCountry[1]; } if($f_strSameAs == "Y") { $f_strBillLastName = $f_strLastName; $f_strBillFirstName = $f_strFirstName; $f_strBillCompany = $f_strCompany; $f_strBillAddress1 = $f_strAddress1; $f_strBillAddress2 = $f_strAddress2; $f_strBillCity = $f_strCity; $f_strBillPostalCode = $f_strPostalCode; $f_strBillRegion = $f_strRegion; $f_strBillCountry2 = $f_strCountry2; $f_strBillCountry = $f_strCountry; $f_strBillEmail = $f_strEmail; $f_strBillFax = $f_strFax; $f_strBillPhone = $f_strPhone; } if(($f_strLastName == "") || ($f_strFirstName == "")/* || ($f_strSalesTax == "")*/ || ($f_strAddress1 == "") || ($f_strCity == "") || ($f_strPostalCode == "") || ($f_strRegion == "") || (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $f_strEmail)) || (($f_strSameAs != "Y") && (($f_strBillAddress1 == "") || ($f_strBillCity == "") || ($f_strBillPostalCode == "") || ($f_strBillRegion == "") || (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $f_strBillEmail)) ))) { if($f_strLastName == "") $strErrMessage = "You must enter your Last Name."; elseif($f_strFirstName == "") $strErrMessage = "You must enter your First Name."; elseif($f_strAddress1 == "") $strErrMessage = "You must enter an address."; elseif($f_strCity == "") $strErrMessage = "You must enter a city."; elseif($f_strRegion == "") $strErrMessage = "You must select or enter a state/province/region."; elseif($f_strPostalCode == "") $strErrMessage = "You must enter a zip/postal code."; /*elseif($f_strSalesTax == "") $strErrMessage = "You must select an appropriate Sales Tax."; */ elseif(($f_strSameAs != "Y") && (($f_strBillAddress1 == "") || ($f_strBillCity == "") || ($f_strBillRegion == "") || ($f_strBillPostalCode == ""))) $strErrMessage = "You must enter a valid Billing Address."; else $strErrMessage = "You must enter a valid email address."; ?>

Please hit the Back button on your browser and complete the required information.

"; $intCurRow = 0; while($intCurRow < $intTaxRows) { if(($ascTaxTblResult[$intCurRow]['fldTaxRegion'] == $f_strBillRegion) && ($ascTaxTblResult[$intCurRow]['fldTaxCountry'] == $f_strBillCountry2)) { $g_dblTaxRate = $ascTaxTblResult[$intCurRow]['fldTaxRate']; $g_strTaxRegion = $ascTaxTblResult[$intCurRow]['fldTaxRegion']; break; } elseif(((!isset($ascTaxTblResult[$intCurRow]['fldTaxRegion'])) || ($ascTaxTblResult[$intCurRow]['fldTaxRegion'] == "")) && ($ascTaxTblResult[$intCurRow]['fldTaxCountry'] == $f_strBillCountry2)) { if(!isset($g_dblTaxRate)) { $g_dblTaxRate = $ascTaxTblResult[$intCurRow]['fldTaxRate']; $g_strTaxCountry = $ascTaxTblResult[$intCurRow]['fldTaxCountry']; } } $intCurRow++; } if($intTaxRows) $g_objDB->FreeResults($sclTaxTblResultID); if(($intTaxRows > 0) && (!isset($g_dblTaxRate))) { $g_dblTaxRate = 0.00; $g_strTaxRegion = $f_strBillRegion; } elseif(isset($g_strTaxCountry) && ($g_strTaxCountry != "")) { $g_strTaxRegion = $f_strBillRegion; } //print "TAX RATE = ".$g_dblTaxRate." REGION = ".$g_strTaxRegion."
"; $g_intOrderID = 0; ?>

Checkout

 
Please enter your Payment Information below and press the corresponding Submit Order button. You will be charged for the amount listed above as Total of Order.

GetFirstRowOfSet($strSQL, &$ascProcResult, SQL_GET_ROW_COUNT, "Get Payment Processor"); if($g_objDB->HasError()) { $g_objDB->DisplayError(__FILE__, __LINE__, "Get Payment Processor Failed!"); include "bottom.phtml"; exit; } $intProcRows = $g_objDB->GetRowCount($sclProcResultID); if(($intProcRows > 1) && ($ascProcResult['fldStatus'] != "TEST")) { $g_objDB->GetNextRow(&$ascProcResult, "Get TEST Payment Processor", $sclProcResultID); //print "2 - ".$ascProcResult['fldCardNumber']; if($g_objDB->HasError()) { $g_objDB->DisplayError(__FILE__, __LINE__, "Get TEST Payment Processor Failed!"); include "bottom.phtml"; exit; } } if($intProcRows > 0) { if(isset($g_strSecureURL) && ($g_strSecureURL != "")) $g_strPayResponseURL = $g_strSecureURL.$g_strResultURL; else $g_strPayResponseURL = $g_strFullURL.$g_strResultURL; $g_strPayAction = "AUTHORIZE"; $g_strDeleteURL = "list.phtml"; $g_blnInTable = true; $g_blnPayProcessForm = true; $g_intTableColumns = 2; $g_strGateway = $ascProcResult['fldName']; $g_strProcPassword = $ascProcResult['fldPassword']; $g_strProcUser = $ascProcResult['fldUser']; $g_strProcStatus = $ascProcResult['fldStatus']; $g_strProcCardNumber = $ascProcResult['fldCardNumber']; $g_strProccessor = $ascProcResult['fldProcessor']; ?>
BILLING INFORMATION:
Select Payment Method :
 
Select Credit Card :
 
GetAllRows($strSQL, &$ascCardResult, &$blnMoreRows, SQL_GET_ROW_COUNT, &$sclCardResultID, "Get Credit Cards"); if(!$g_objDB->HasError()) { $intCardRows = $g_objDB->GetRowCount($sclCardResultID); if($intCardRows) {?>
 
Name on Credit Card : " SIZE=40>
Credit Card Number : TESTING
"; if($g_strProcCardNumber != "") { print "Use the number provided!!"; } else { print "Use any valid number. It will NOT be charged."; } } //if($f_strRequireCid=="YES") if(isset($fldRequireCid) && $fldRequireCid=="YES") { ?>
CID/CVV2 Card Number :
Expiration Date :
:
 

 


0) $g_objDB->FreeResults($sclProcResultID); ?>