Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    download via click bank

    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[]
    Last edited by johnweaver; 04-04-2009 at 09:22 PM.

  • #2
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    http://www.clickbank.com/getting_started.html#Step02 All the information is there you just make a link on your pitch page like so.
    Code:
    <a href="http://ITEM.VENDOR.pay.clickbank.net"
         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.
    You can not say you know how to do something, until you can teach it to someone else.

  • #3
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    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

    http://www.clickbank.com/documents/B..._Questions.pdf

    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.
    You can not say you know how to do something, until you can teach it to someone else.

  • #4
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks tim I will try that

  • #5
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I,ll get there . all though I use dreamweaver you have been a great help so far and I am very grateful

  • #6
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    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.
    You can not say you know how to do something, until you can teach it to someone else.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •