View Full Version : download via click bank
04-04-2009, 07:32 PM
I am building a website and would like to offer visitors the opportunity to download a video file for a small fee via my clickbank account is there a anyone who knows the html code to do this
I would be extremely grateful
04-04-2009, 09:56 PM
http://www.clickbank.com/getting_started.html#Step02 All the information is there you just make a link on your pitch page like so.
target=cb>CLICK HERE TO PURCHASE</a>
Here's how to make it work...
* Replace ITEM with the item number of the link (product) for sale. As you set up products to sell in your ClickBank account, you will need to assign each of your links an item number: 1, 2, 3, etc. If you are setting up your first product, the item number is 1. The item number in the payment link must correspond to the item number for the Thank You Page in your account under "My Products".
* Replace VENDOR with your ClickBank account nickname
* Replace CLICK HERE TO PURCHASE with any promotional text or image you prefer.
Thats all on there web page though http://www.clickbank.com/getting_started.html
Then you need your thankyou page. Problem is finding out exactly what clickbank send to that thankyou page via post data. Do they send the reciept id via post. Or maybe they just redirect the user to a page without sending any post data back. In either case you will need a server side scripting language to handle the thankyou page that only allows users who have purchased the items to access via sessions/cookies and evaluation of post data. PHP is a good server side scripting language to achieve that but you won't be able to achieve this with HTML alone.
I'm actually quite interested in clickbank myself as i will be designing a website with a payment system for digital content for my rock band so i think i will email them to ask some of these questions. I'll get back to you with there response.
04-04-2009, 10:31 PM
Actually i have looked into it and they do send all sort of information back via a query string. GET not POST. See for yourself
They encrypt all the data they send back to you. They encrypt it with a secret key that you store on you Clickbank account. Then you can decrypt it with that key to get the human readable data from that. You need PHP, PERL, C#, RUBY, ASP or VB.net installed on your server. Whilst i can help you with PHP I don't have a clue about the others. The data they send back to you will be
rcpt - The recipt number of that purchase
time - The time of the order
item - The item you sold
cbpop - ClickBank proof of purchase
You can also pass other data to them that will be sent back once the transaction is completed with clickbank. Its worth sending your own key to them for that customer then they will send it back which will be a great way to validate who they are. You can pass up to 128 characters of your own variables via the payment link.
All of these can be evaluated with $_GET or $_REQUEST in php and sha1 for the encryptions. Once you have evaluated them and converted them to human readable data. Do the following. Validate the data, Store the data, display the data, display a link to that video content. Rember to follow there guide lines for what else to display http://www.clickbank.com/getting_started.html#Step04
Hope this all makes sense. I have to admit though this may be alot to ask of someone who is new to web design and programming, who users dreamweaver to design sites? Let me know if you want to pursue this further and i can help along the way. Provided you take the PHP route that is.
04-04-2009, 10:48 PM
thanks tim I will try that
04-05-2009, 02:12 PM
I,ll get there . all though I use dreamweaver you have been a great help so far and I am very grateful
04-05-2009, 09:04 PM
Dreamweaver is usable for me in code view (not that i use it), but in using design view just makes really bad obsolete invalid code. I good start for you would be seeing what you have installed on your server. Is it with a hosting company maybe it already has PHP installed? Most servers do. Like i said if it is in php I'm willing to help you create this script because I'm interested in click bank. Will be a chance for me to test it out.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.