\n"); echo("\n"); echo("\n"); $TRXamount = str_replace(',','',number_format($owing,2)); if (strlen($merchant_account_OrderDescription) == 0) $merchant_account_OrderDescription = $school_record['school_name'] . " Order Payment"; // Insert your security key ID here $gw_merchantKeyId = $merchant_account_KeyID; // Insert your security key here $gw_merchantKeyText = $merchant_account_KeyText; if (!function_exists('gw_printField')) { function gw_printField($name, $value = "") { global $gw_merchantKeyText; static $fields; // Generate the hash if($name == "hash") { $stringToHash = implode('|', array_values($fields)) . "|" . $gw_merchantKeyText; $value = implode("|", array_keys($fields)) . "|" . md5($stringToHash); } else { $fields[$name] = $value; } echo(" \n"); } } $country = ''; if ($school_record['country'] == 'Canada') $country = 'CA'; if ($school_record['country'] == 'USA') $country = 'US'; $province = ''; if (strlen($country)) $province = $school_record['province']; ?>