<?php
  //your iTransact account details
  $vendorID = "XXXXX";
  global $vendor_name;
  $mername = $vendor_name;
  
  //order details
  $total = $db->f("order_total");$first_name = $user->first_name;$last_name = $user->last_name;$address = $user->address_1;$city = $user->city;$state = $user->state;$zip = $user->zip;$country = $user->country;$email = $user->email;$phone = $user->phone_1;$home_page = $mosConfig_live_site."/index.php";$ret_addr = $mosConfig_live_site."/index.php";$cc_payment_image = $mosConfig_live_site."/components/com_virtuemart/shop_image/ps_image/cc_payment.jpg";
  ?>
  <form action="https://secure.paymentclearing.com/cgi-bin/mas/split.cgi" method="POST"> 
                <input type="hidden" name="vendor_id" value="<?php echo $vendorID; ?>" />
              <input type="hidden" name="home_page" value="<?php echo $home_page; ?>" />
             <input type="hidden" name="ret_addr" value="<?php echo $ret_addr; ?>" />
               <input type="hidden" name="mername" value="<?php echo $mername; ?>" />
         <!--Enter text in the next value that should appear on the bottom of the order form.-->
               <INPUT type="hidden" name="mertext" value="" />
         <!--If you are accepting checks, enter the number 1 in the next value.  Enter the number 0 if you are not accepting checks.-->
                <INPUT type="hidden" name="acceptchecks" value="0" />
           <!--Enter the number 1 in the next value if you want to allow pre-registered customers to pay with a check.  Enter the number 0 if not.-->
            <INPUT type="hidden" name="allowreg" value="0" />
               <!--If you are set up with Check Guarantee, enter the number 1 in the next value.  Enter the number 0 if not.-->
              <INPUT type="hidden" name="checkguar" value="0" />
              <!--Enter the number 1 in the next value if you are accepting credit card payments.  Enter the number zero if not.-->
         <INPUT type="hidden" name="acceptcards" value="1">
              <!--Enter the number 1 in the next value if you want to allow a separate mailing address for credit card orders.  Enter the number 0 if not.-->
               <INPUT type="hidden" name="altaddr" value="0" />
                <!--Enter the number 1 in the next value if you want the customer to enter the CVV number for card orders.  Enter the number 0 if not.-->
             <INPUT type="hidden" name="showcvv" value="1" />
                
              <input type="hidden" name="1-desc" value="Order Total" />
               <input type="hidden" name="1-cost" value="<?php echo $total; ?>" />
            <input type="hidden" name="1-qty" value="1" />
          <input type="hidden" name="total" value="<?php echo $total; ?>" />
             <input type="hidden" name="first_name" value="<?php echo $first_name; ?>" />
           <input type="hidden" name="last_name" value="<?php echo $last_name; ?>" />
             <input type="hidden" name="address" value="<?php echo $address; ?>" />
         <input type="hidden" name="city" value="<?php echo $city; ?>" />
               <input type="hidden" name="state" value="<?php echo $state; ?>" />
             <input type="hidden" name="zip" value="<?php echo $zip; ?>" />
         <input type="hidden" name="country" value="<?php echo $country; ?>" />
         <input type="hidden" name="phone" value="<?php echo $phone; ?>" />
             <input type="hidden" name="email" value="<?php echo $email; ?>" />
             <p><input type="image" alt="Process Secure Credit Card Transaction using iTransact" border="0" height="60" width="210" src="<?php echo $cc_payment_image; ?>" /> </p>
            </form>