Business Sites     

Web Applications      Web Site Hosting      Search Engine     
CompanyWeb.net: Web Hosting, Internet Programming, Search Engine Optimization

 

 


CompanyWeb Articles

Book Reviews
Columns

Web-Source Topics...

Horse's Mouth
ProBizTips

CompanyWeb Search



Web Design Master Series Article

Web Design Master Series Article is syndicated from Web-Source.net.

Syndicated articles are written by independent authors and the contents represent the author's views. The content of the article does not necessarily represent the views of Company Web staff and management.


Master Series

Simple ClickBank Authentication

By William Bontrager

This article presents a script you can use to authenticate ClickBank purchases.

The script is for merchants who use ClickBank to sell products. Download the script and examples mentioned in this article at http://willmaster.com/a/11/pl.pl?scbademo

(If you are a merchant with downloadable products, see http://willmaster.com/a/11/pl.pl?cbnkmerchant for more information about ClickBank.)

The script is simple to implement. The URL of the script is what you specify as the "thank you page" at your ClickBank account information control panel. Example URL: http://domain.com/cgi-bin/cb.cgi

The script will:

1. Verify that the ClickBank receipt number is exactly eight characters long and contains only alphanumeric characters.

2. Verify that the referring URL is a ClickBank URL.

If the receipt number is eight alphanumeric characters *and* the script can determine that the receipt number was sent from a ClickBank URL, authentication will pass. Otherwise, it fails.

Near the top of the script are two places to customize. One specifies the file name of the web page template to present when authentication passes. The other specifies the one to present when authentication fails.

In either/both of the above templates, you can use

[[cbreceipt]]

wherever you want the script to insert the ClickBank receipt number. Also, if you include any images, sounds, or other page elements that require a URL, use the complete http://... URL instead of a relative URL.

The web page template to be presented when authentication passes should, of course, contain instructions about how to proceed -- a download link, if appropriate -- and ways to contact you in case of problems or confusions.

Examples of both of these templates are in the ZIP file at http://willmaster.com/a/11/pl.pl?scbademo

Just download, install, and use.

Will Bontrager

Copyright © 2002 Bontrager Connection, LLC

About the Author:

William Bontrager Programmer/Publisher, "WillMaster Possibilities" ezine mailto:[email protected]

Are you looking for top quality scripts? Visit Willmaster and check out his highly acclaimed Master Series scripts. Some free, some for a fee.

Content Provided By:

More Master Series Articles...

 


Frontpage, NT are Trademarks of Microsoft Corporation. CompanyWeb Site Copyright (c) 1998 - 2003, CompanyWeb.net Site Development Service Group.