HOME PRICING PURCHASE CONTACT US 541-306-6332  
Components
Account Management
Site Control Panel
Email
FTP
Frontpage
Billing Maintenance
Documentation
ISAPI connection
Database
Shopping
Pay Per Download
Random Graphics
Server Side Includes
Visitor Forms
Web File Transfer
META Tags
Fraction/Decimal Chart
RGB Color Table
HTML Entities
E-Commerce Setup
SSL Certificate
SSL Renewal
Merchant Account
ASP
Overview
ADO Database
SendMail
File IO
Include Files
Transactions
ISAPI/HTML-Basic
Authentication
SendMail
Banner Rotator
Random Graphics
Random Pages
ISAPI/HTML-Database
dbSearch
dbstore/SendMail
dbdelete
dbupdate
Template Driven

Hosted by InfoDial


PAY PER DOWNLOAD

Checkorder Page


Your checkorder page needs to start with a <meta> tag that refreshes the browser and passes the data on:

<meta http-equiv="refresh" content="15; url=/cgi-bin/checkorder.exe?
OrderNumber=##TP_ORDERNUMBER##,TP_FIRSTNAME=##TP_FIRSTNAME##,
TP_LASTNAME=##TP_LASTNAME##,template=\checkorder.htm">

The meta tag goes between the <head></head> tags at the beginning of your HTML document. The meta tag should be one continous line with no breaks or spaces in it. Notice that the template is the same page, which will just keep reloading itself until the order is either approved or declined.

We have passed the First and Last names on in the meta tag so that your page can be personalized per user. You might insert a line of code that says:

Thank you for shopping with Our Company, ##TP_FIRSTNAME## ##TP_LASTNAME##. Your order is being processed in real-time. Just wait a moment for your approval code:

You can insert any of the values from the List of Fieldnames you like between the ## vars.

Next you need to let your customer know the status of their order:

Transaction Result: ##TP_OrderResult##
Order Number: ##TP_OrderNumber##

Once the order is approved, your customer can click a button to continue on to the download page.

<FORM ACTION="/cgi-bin/fillorder.exe" METHOD="POST" name="fillorderform">
<input type="hidden" name="OrderNumber" value="##TP_ORDERNUMBER##">
<input type="hidden" name="ticket" value="##TP_TICKET##">
<input type="hidden" name="ERROR" value="/error.htm">
<input type="hidden" name="template" value="\fillorder.htm">
<input type="submit" value="Proceed to Download Section">
</FORM>

The error page in the example above is a page that you create telling your customer that their order was declined and they can't have the download:

<html>
<head>
<title>Pay Per Download</title>
</head>
<body>
<center>
<table>
<tr>
<td>
<center>
Sorry. Bad Ticket. Your transaction was not approved.
<input type="button" value="BACK" onClick="history.back();">
</center>
</td>
</tr>
</table>
</center>
</body>
</html>

Let's move on to filling the order.

  ©1995-2001 InfoDial, Inc.