The built-in integration of subtotal sets up a request to total. However, you may wish to call it directly. Here are the parameters you will need before calling Total:
- Template
- Nextpage
- Subtotal
Features and Details of the Total Template
- The Total Template supports purchases with Credit Cards and/or EFT.
- Shipping, Billing, Credit Card, Internet Check, and Sales Fields are pre-built functions in the total template.
- Additional fields can be created and stored to an extra database.
The Total Template
You can start your total template 3 different ways:
- ##TP_BeginForm##
- ##TP_BeginForm2##
- <FORM METHOD="POST" ACTION="cgi-bin/transaction.exe">
Use ##TP_BeginForm## to start your return if you have SSL on your site. Use ##TP_BeginForm2## if you don't have SSL. The Form call is an optional method for ##TP_BeginForm##.
##TP_Table## or ##TP_CUSTOM_TABLE##
The TP_Table tag is the second tag within the body of the Total form. You can use <center> or other formatting tags around the TP_Table tag to adjust it to your design. If you are using the custom table feature, you'll need to create a separate file that will be pulled in when the ##TP_CUSTOM_TABLE## tag is used:
<input type="hidden" name="totaltable" value="\path\filename.htm">
Template Tag
You'll need to specify a page that will be displayed once the Purchase button is clicked. You can either specify a generic nextpage which will thank your customer for their order, or process their transaction in real-time:
<input type="hidden" name="nextpage" value="/thankyou.htm">
Or
<input type="hidden" name="template" value="\checkorder.htm">
##TP_CUSTOM_SUBTOTAL## includes the Subtotal on the page.
##TP_CUSTOM_SHIPPING## displays total shipping charges on web page.
<input type="hidden" name="ShipTotal" Value="##TP_CUSTOM_SHIPPING##">
Passes total shipping charges for the order forward to checkorder.exe.
##TP_CUSTOM_TAX## displays total tax charges on web page.
<input type="hidden" name="Tax" Value="##TP_CUSTOM_TAX##">
Passes total tax charges for the order forward to checkorder.exe.
##TP_TOTAL## or ##TP_CUSTOM_TOTAL## displays total for order on web page.
<input type="hidden" name="Total" Value="##TP_CUSTOM_TOTAL##">
Passes total charges for order forward to checkorder.exe.
Tax & Shipping Values
In order to pass the tax and shipping values that were specified by your customer on the subtotal page forward to the checkorder template, you will need the following lines of code:
<input type="hidden" name="TP_TAXDATA" value="##TAXDATA##">
<input type="hidden" name="TP_SHIPTYPE" value="##TP_SHIPTYPE##">
Data Capture Fields
There are several fields that allow you to capture almost any kind of data you can think of. Please see the List of Fieldnames in the Reference section for a complete listing of the fields available. These are the fields required by you that must be filled in by your customer in order to complete their order.
First Name: <input type="text" name="TP_FIRSTNAME">
Last Name: <input type="text" name="TP_LASTNAME">
Email Address:<input type="text" name="TP_EMAIL">
etc...
Internet Checks
If you choose to have the Internet Checks option available to your customers, you will need to have the fields represented on the total template. Here are the minimum fields required:
Driver's License Number: <input type="text" name="TP_DRIVER" size="30">
State:
<select name="TP_STATE" size="1">
<option value="AL">Please see List of States for options</option>
The next three fields require your customer to gather information from the line of numbers at the bottom of their check. Click here for an example page that shows them how to gather this information.
Check Number: <input type="text" name="TP_BANKCHECKNUMBER" size="30">
Routing Number: <input type="text" name="TP_BANKROUTING" size="30">
Account Number: <input type="text" name="TP_BANKACCOUNT" size="30">
<input type="submit" value="Purchase">
Note: TP_SELLER and TP_EMAIL are not required but influence email transmission.
The following code is example of how email might be activated. Be sure to change the email address to reflect the right destination.
<input type="hidden" name="TP_SELLER" value="your_email_address@your_domain_name.com>
For Buyer's email. They need to provide it so use the "text" type:
<input type="text" name="TP_EMAIL" size="20">
The ##TP_Endform## tag must be the last tag within the body of the total template and ends the Total form.
|