5999) { $errflag=true; $error="The \$ amount entered is not valid"; $tsf_amount=""; } $tsf_amount=number_format($tsf_amount,2); } if (!$errflag) { $error=""; } else { $error="

$error. Please update these details and try again.

"; } } if($errflag) { $tsf_page=0; } if($tsf_page==0) { $output="

Pay online

You can now pay SecurityFirst directly online. Enter your details below and the amount you would like to pay then click Next>>. The next screen will enable you to check the details you entered, then you will be transferred to our secure payment system provider.

$error
Your first name*
Last name*
Company (if any)
Street address*
City
ZIP*
Phone*
Invoice reference number*
Amount you want to pay* \$

"; } if ($tsf_page==1) { $merchantkey="PRPcKUjH~MAicFuIMqr5"; $x_login="WSP-SECUR-7zKwhAACzA"; $random=rand(10000,99999); $timestamp=time(); $md5=hash_hmac("MD5","$x_login^$random^$timestamp^$tsf_amount^","$merchantkey"); $provider='https://checkout.globalgatewaye4.firstdata.com/payment'; $output="

Confirmation

Please check the following details are correct, then click 'Go to payment >>' to make your payment at our payment provider FirstData.com.

I want to make a payment of \$".number_format($tsf_amount,2)." for invoice reference: $tsf_invoice

My details:

Online payments to Security FIRST are handled by Firstdata.com. No credit card details are collected or stored on the Security FIRST website.

"; } /*ECHO " input type='hidden' name='x_login' value='$x_login'
input type='hidden' name='x_fp_sequence' value='$random'
input type='hidden' name='x_fp_timestamp' value='$timestamp'
input type='hidden' name='x_amount' value='$tsf_amount'
input type='hidden' name='x_fp_hash' value='$md5'
input type='hidden' name='x_show_form' value='PAYMENT_FORM'
input type='hidden' name='x_first_name' value='$tsf_fname'
input type='hidden' name='x_last_name' value='$tsf_lname'
input type='hidden' name='x_company' value='$tsf_company'
input type='hidden' name='x_address' value='$tsf_street'
input type='hidden' name='x_city' value='$tsf_city'
input type='hidden' name='x_zip' value='$tsf_zip'
input type='hidden' name='x_phone' value='$tsf_phone'
input type='hidden' name='x_invoice_num' value='$tsf_invoice'
"; */ ECHO " $output "; ?>