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.
|