latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

How do I integrate Clickbank?

Home Forums Community Forum How do I integrate Clickbank?

This topic contains 53 replies, has 3 voices. Last updated by  Cristián Lávaque 4 years, 7 months ago.

Topic Author Topic
Posted: Friday Apr 27th, 2012 at 7:54 pm #12103

Hey Guys,

Just bought the Pro version so that I could integrate Clickbank with s2member. I have searched everywhere for an article or video with step by step instructions to integrate clickbank but can’t find anything anywhere.

Can you point me to a specific video or article?

I am using the latest version of wordpress and Headway theme.

Thanks -very excited to get this up and running!

Scott

List Of Topic Replies

Viewing 25 replies - 1 through 25 (of 53 total)
Author Replies
Author Replies
Posted: Saturday Apr 28th, 2012 at 4:25 am #12130

Hi Scott.

There isn’t a video or article for this integration yet, but it’s not really hard. Have you gone to your ClickBank options page in s2Member and read the documentation there?

First activate the ClickBank gateway from [hilite path]Dashboard -› s2Member® -› Other Gateways[/hilite], check the box for it, save and then refresh the page.

Now in the menu you’ll see the ClickBank entries, go to the Options page and follow the documentation. [hilite path]Dashboard -› s2Member® -› ClickBank® Options -› Account Details[/hilite]

I suggest that you enable logging right away, so logs are created while you test the integration, that way if something goes wrong, it’ll be easier to spot what. [hilite path]Dashboard -› s2Member® -› ClickBank® Options -› Account Details -› Logging[/hilite]

Let me know how it goes. :)

Posted: Monday Apr 30th, 2012 at 7:10 pm #12251

Thank you Cristian –

Would be really nice if there was a video or tutorial on this stuff because it does not seem totally clear (for a non tech savvy guy like myself).

I did all that you suggested and filled in the proper Clickbank API Keys, but it looks like your instructions only tell me part of what I will need. I don’t know what to do next.

What about all the other areas under Clickbank Options in S2Member. Do I need to fill those out, like IPN v2.1 Integration, etc?

To give you a better idea of what I’m trying to do, here is what I will need S2Member to do with Clickbank:
I have a course that is a zip file download.
I am selling it through Clickbank.
I need to use S2Member to password protect the course download page on my site – so the the page cannot be easily shared by non purchasers.

So when someone buys my course through clickbank I need the following to happen:
1. They are taken to a “thank you” page on my site.
2. This thank you page will be the page where they create their S2Member account
3. Once they create their S2Member account, they will be able to login.
4. As soon as they create their login, they will automatically be added to my aweber “purchasers” list
5. The first page they log in to will be the page that offers the download link.

Please tell me what else I have to do to set up this functionality.

Btw, I am not very tech savvy at all so the more guidance the better.

Thanks so much!

Sott

Posted: Tuesday May 1st, 2012 at 4:58 am #12265

What about all the other areas under Clickbank Options in S2Member. Do I need to fill those out, like IPN v2.1 Integration, etc?

Right, you’ll need the IPN one filled out as well. And I suggest you read and customize (as needed) the other panels in the ClickBank Options page, except for the Specific Post/Page Confirmation Email one, since you won’t be selling those.

The panels have the instructions you need for the integration with s2Member. ClickBank itself needs you to fill out some extra things on their side, besides the values that s2Member gives you, though, like that pitch page and I don’t remember if there’s something else.

There will be a step in ClickBank that says something about needing you to have/be someone experienced to integrate with ClickBank, or something like that: just go ahead, since Jason coded the integration in s2Member, so you did have someone qualified do it.

So when someone buys my course through clickbank I need the following to happen:
1. They are taken to a “thank you” page on my site.
2. This thank you page will be the page where they create their S2Member account
3. Once they create their S2Member account, they will be able to login.
4. As soon as they create their login, they will automatically be added to my aweber “purchasers” list
5. The first page they log in to will be the page that offers the download link.

1. You can customize this page following the instructions here: [hilite path]Dashboard -› s2Member® -› ClickBank® Options -› Thank-You Page Integration[/hilite]

2. You could use a regisrtation pro-form in your custom thank-you page, but then anyone with the URL to that page would be able to register an account. So it’ll have to be a two-step thing: first the thank-you page with the stuff ClickBank requires you have in it, and and link that says “click here to register your account” or similar, pointing to the registration page [hilite mono]/wp-login.php?action=register[/hilite]

3. Right. To make sure no one can register without having paid, make sure you disable free registrations. [hilite path]Dashboard -› s2Member® -› General Options -› Open Registration[/hilite]

4. You’d integrate that from here: [hilite path]Dashboard -› s2Member® -› API / List Servers -› AWeber®[/hilite]

5. Create the download page and set it as your Login Welcome page here: [hilite path]Dashboard -› s2Member® -› General Options -› Login Welcome Page[/hilite]

I hope that helps. :)

Posted: Wednesday May 2nd, 2012 at 5:27 am #12359

Hello,
I am in the same case of Scott, I am new to s2Member.
Here is what I don’t know to do : how to generate API and IPN Keys ?
I read some articles into clickbank, but they provide for a kind of file like : “schema.xml” but nothing like a key : for Example : Autorisation DEV-F7F8023A486E9A9602FFDA2765E1925:API-9870acb8d96f8bd18c2eb70725b01fe4b98ece58 (provide as an exemple here : http://www.clickbank.com/help/account-help/account-tools/clickbank-api/

So I don’t know how to find this keys :
– ClickBank® Clerk/API Key ( Read Access )
– ClickBank® Developer/API Key
could you explain me how to generate them?

I have also question about the IPN secret key :
– Will I fill the s2Member field with the Secret Key I created in ClickBank?
When I test the Instant Notification URL, it said :
“The test notification successfully sent. Please check your system for this test notification”
What does that means?
What and where can I check?

Could you help for these questions?

Regards.

David R

Posted: Wednesday May 2nd, 2012 at 11:52 pm #12414

The Clerk and Dev API keys: login to your ClickBank account, go to Account Settings and you’ll see the panels for them at the bottom.

For the Clerk one, click the “edit” link, in the next page click the green “create new” button. In the next page enter a description, check the checkbox for read access and click “save”. Then you’ll get the API key, copy it complete, including the “API-” prefix and paste it in your s2Member field for it. [hilite path]Dashboard -› s2Member® -› ClickBank® Options -› Account Details[/hilite]

For the Dev API, click the “edit” link, in the next page click the green “create new” button. In the next page enter a description and click “save”. Then you’ll get the API key, copy it complete, including the “DEV-” prefix and paste it in your s2Member field for it. [hilite path]Dashboard -› s2Member® -› ClickBank® Options -› Account Details[/hilite]

About the secret key, from the CB docs:

Secret Key: A secret key is used while performing encryption and decryption activities in a process called Cipher. The secret key is utilized in two specific features related to your ClickBank account, the Link Security Script service and the Instant Notification service. You can enter a secret key on the My Site page of your ClickBank account. The secret key can be up to 16 letters or digits, and must be in ALL CAPS.

Go to Account Settings and then click the sub menu’s link to My Site, you’ll find the Secret Key is under the Advanced Tools section. Click the “edit” link for it and enter your key in the field provided, click the “request access” link below it for the IPN. Review the data the provide, change all the answers to “yes”, read the terms box, check the agreement box at the bottom and click the “save” button. Then copy the secret key you entered and paste it in your s2Member field for it. [hilite path]Dashboard -› s2Member® -› ClickBank® Options -› IPN Integration[/hilite]

I hope that helps. :)

Posted: Thursday May 3rd, 2012 at 6:01 am #12447

Yes Cristiàn,
you helped me a lot, I clicked your rate up…
I think it will help also other newbies like me!
Regards.

Posted: Thursday May 3rd, 2012 at 1:14 pm #12487

Cool. Glad I could help. :)

Posted: Tuesday May 8th, 2012 at 6:33 pm #12953

Thanks guys. I am trying to follow these steps, it’s just a lot more challenging than I’d thought, given that I don’t have a technical background. Is there any service to get this done or easier way to do this?

Or any full set of step by step instructions. I figured others would have similar issues but maybe not…

Any help goes a long way.

Cheers,
Scott

Posted: Tuesday May 8th, 2012 at 7:06 pm #12956

There isn’t a video for it, but the steps to follow are pretty much there. The integration panels have the documentation and info, and above I explained how to do the stuff over on ClickBank’s side.

It can’t be done much simpler because ClickBank requires all these bits of info to be used in the integration, and we can’t change their interface. Ours is mostly the input field to paste the bits you get from them, really.

We don’t have a service to set it up, but there are developers that can do this for you if you don’t want to. You can try places like jobs.wordpress.net, elance or odesk.

I hope that helps. :)

Posted: Tuesday May 8th, 2012 at 7:22 pm #12962

Ok Im making it through the steps but have a couple questions.

1. For my Thank You page that one is taken to right after clickbank purchase, I am currently using: http://liveyourlegend.net/thank-your-for-purchasing-live-off-your-passion/

Will I need to change this page or edit it according to “Clickbank Thank-You Page”? in s2member settings. Does this require custom coding?

based on what is says, it seems like I dont need to change this thank page. According to this: “Everything else, including the textual response and other important details that each Customer needs to know about, are already handled dynamically by s2Member (based on the type of transaction that is taking place ).”

2. From this thank you page, will they be taken to a page to create their account on my site?

3. Then will they get the “Signup Confirmation Email Message”?

4. At what point do they get to the page to download the product? That page will need to be my welcome page which they are taken to after they create their account. Will they need to get the “Signup Confirmation Email Message”. Before accessing the download page in the members area?

Also do I need to do anything with Clickbank buttons in s2member?

Thanks – again if there’s any quick (possibly outsourced) solution for non technical folks please let me know.

Cheers,
Scott

Posted: Tuesday May 8th, 2012 at 9:29 pm #13012

1. For my Thank You page that one is taken to right after clickbank purchase, I am currently using: http://liveyourlegend.net/thank-your-for-purchasing-live-off-your-passion/

Will I need to change this page or edit it according to “Clickbank Thank-You Page”? in s2member settings. Does this require custom coding?

The documentation for this is here: [hilite path]Dashboard -› s2Member® -› ClickBank® Options -› Thank-You Page Integration[/hilite]

The person needs to come back to the URL s2Member mentions there, or s2Member won’t set the cookie for the user to register next with the proper access he just paid for.

s2Member has a default thank-you page, but you can create your own too. It’s explained in that documentation too.

2. From this thank you page, will they be taken to a page to create their account on my site?

No, the thank-you page has a link for the person to click and go to the registration page. If you use a custom thank-you page, you’ll need to add this link.

3. Then will they get the “Signup Confirmation Email Message”?

The confirmation email gets sent as soon as s2Member hears back from ClickBank after the checkout was successful. The email includes a link the user can use to register in case he didn’t get the cookie properly set when returning from checkout. This link includes info to let the user register in case you had Open Registration disabled, and what access he should get.

4. At what point do they get to the page to download the product? That page will need to be my welcome page which they are taken to after they create their account. Will they need to get the “Signup Confirmation Email Message”. Before accessing the download page in the members area?

After they register their account and login. Login is not automatic in WordPress, though, and s2Member doesn’t modify this.

Also do I need to do anything with Clickbank buttons in s2member?

The ClickBank buttons should be created with the s2Member shortcode you generate here: [hilite path]Dashboard -› s2Member® -› ClickBank® Buttons[/hilite]. These shortcodes will work in any page or post of the same WordPress where you have s2Member protecting the product.

I hope that helps. Let me know if you have another question. :)

Posted: Tuesday May 8th, 2012 at 9:50 pm #13016

Hello Cristàn,

For my issue, do you know if I clean the index.php and put inside the content with my landingpage.html (the links are in the previous message) do you think wordpress will still work fine?
Or should I integrate the actual php code into the index.php WHIT my personnal html code? and how?
I wonder how other people can manage their landing page in WP?
Regards.
David R.

Posted: Tuesday May 8th, 2012 at 10:25 pm #13021

Your landing page should be in WordPress, or you’ll need a hack to make the ClickBank button work with s2Member. http://www.s2member.com/forums/topic/using-clickbank-and-paypal/#post-11438

Posted: Friday May 11th, 2012 at 5:47 pm #13223

Ok Christiàn, I changed my landing page to an other page : http://clubeducatif.com/offres.html
Now I have an other issue, that causes me trouble with ClickBank(CB), I can’t get an approval request.
It seems to be about the thank you page, when I test it from the link provide into s2Member,(s2M) the preview seems working well no error message.
But if I test my offers by clicking a clickbank button into the Membership Options Page http://clubeducatif.com/demarrez-ici/ wich is into WordPress (WP), the test is fine until I arrive into the “Thank You Page”, where I read that :
————–
ERROR: Unable to verify $_SERVER[“HTTP_HOST”].
Please contact Support for assistance.

If you are the site owner, please check the custom value in your Button Code. It MUST start with your domain name.
—————
I tried many things, in custom fields button, here are my trails :
– custom=”clubeducatif.com
– custom=”clubeducatif.com/offres.html

An other error message I get, was :
—————
ERROR: Unable to verify POST vars. Please contact Support for assistance.

This is most likely related to an invalid ClickBank® configuration. If you are the site owner, please check: s2Member -> ClickBank® Options.
————–

Could you guide me to find the solution to this message, because I can’t submit an other approval request to CB, before to be sure every thing is fine.
You can also refer to a forum page if you want, but i didn’t find exactly what i looking for into it.

Regards.
David R

Posted: Friday May 11th, 2012 at 8:17 pm #13243

Could you post here the shortcode you’re using for the ClickBank button? Are you using it in a page of the WP installation where you have s2Member?

What URL did you enter in your ClickBank button for the thank-you page? [hilite path]ClickBank Admin -> Account Settings -> My Products -> Product Thank-You Page[/hilite]

Could you try this test tool and tell me if you get any errors? http://www.s2member.com/r/server-check-tool/

Thanks!

Posted: Saturday May 12th, 2012 at 2:41 pm #13307

Hello Cristian,
Thank you for your help.
Here are the elments you asked :
– The shortcode in the Wp installation where I have s2M, is the following :
(it is in French : Accès Excellence Hebdomadaire)
[s2Member-Pro-ClickBank-Button cbp="h03ematdr" level="73" ccaps="all" desc="Membre 'Excellence' Hebdomadaire du Club Educatif | 87 € TTC/semaine | Accès Forum | Accès Devoirs 17h-21h | Accès Classe 9h-12h + 14h-17h | Accès Nuit 21h-9h | Du lundi 17h au jeudi 21h | Avec Rendez-vous | Réponses en directe ou différée | Vidéo ou Audio ou texte." custom="clubeducatif.com/offres.html" tp="1" tt="W" rp="1" rt="W" rr="1" image="http://le.clubeducatif.com/index_fichiers/launch/addtocart-130x45.png" output="anchor" /]

– First I put this link : http://clubeducatif.com/?s2member_pro_clickbank_return=1
and after I tried : http://clubeducatif.com/?s2member_pro_clickbank_return=1&s2member_pro_clickbank_return_success=http%3A%2F%2Fclubeducatif.com%2Fdemarrez-ici%2Fadhesion%2F

Both give me the following error message :
—————-
ERROR: Unable to verify POST vars. Please contact Support for assistance.

This is most likely related to an invalid ClickBank® configuration. If you are the site owner, please check: s2Member -> ClickBank® Options.
—————-

– Could you tell me what to to with the server check tool, where to put it in my server ?

Regards.

David R

Posted: Saturday May 12th, 2012 at 3:47 pm #13314

Thanks.

The shortcode has an invalid custom value, it should be [hilite mono]custom="clubeducatif.com"[/hilite]. [hilite path]Dashboard -› s2Member® -› ClickBank® Buttons -› Shortcode Attributes -> custom[/hilite]

The URLs will give the POST error if you try them just like that, because they’re expecting someone sent from ClickBank, together with some POST data about the transaction.

To do test purchases, ClickBank provides you with a test credit card number you can use for checkout. [hilite path]ClickBank Admin -> Account Settings -> My Site -> Testing Your Products[/hilite]

I hope it helps. :)

Posted: Saturday May 12th, 2012 at 4:34 pm #13318

Cristiàn,
-It was custom=”clubeducatif.com”, but I tried to change it after the error message, I looked for a solution before to come here and ask for help.
So it will not change the error message, according to me, because I tried both (I mentionned it into my previous message).

– ok for the POST error message, I understand why I got that :
—————
ERROR: Unable to verify POST vars. Please contact Support for assistance.

This is most likely related to an invalid ClickBank® configuration. If you are the site owner, please check: s2Member -> ClickBank® Options.
————–

But it doesn’t explain why this mesasge apprears when I use a test credit card from CB, and get this :
————–
ERROR: Unable to verify $_SERVER[“HTTP_HOST”].
Please contact Support for assistance.

If you are the site owner, please check the custom value in your Button Code. It MUST start with your domain name.
—————

What is next ?

1- You didn’t explain how to use the “server check tool” ?
2- I can go back and change the button custom value to http://clubeducatif.com, like I did first, but from where comes the ERROR HTTP_HOST Message ?
3- Do you think I should create my own thank You Page, to fix this issue ?

David R.

Posted: Saturday May 12th, 2012 at 4:54 pm #13319

I can go back and change the button custom value to http://clubeducatif.com

The custom value should not have the http://, just the domain name clubeducatif.com. When you generate the shortcode for the button, it gives you the right value you should have in the custom attribute. [hilite path]Dashboard -› s2Member® -› ClickBank® Buttons -› Shortcode Attributes -> custom[/hilite]

You didn’t explain how to use the “server check tool”

Extract the PHP file from the ZIP archive and upload it to the server where you have s2Member, then load it in your browser.

But it doesn’t explain why this mesasge apprears when I use a test credit card from CB, and get this :

The server check tool may help figuring that out, but it’d be good to have the log entries for the test transactions. [hilite path]Dashboard -› s2Member® -› ClickBank® Options -› Account Details -› Logging[/hilite]

Thanks. :)

Posted: Monday May 14th, 2012 at 3:24 am #13372

Good Morning Cristiàn,

Thank you to follow up my issue.

– Yes the custom value already respected the shortcode attributes format . It is “clubeducatif.com”, all my button are here : http://clubeducatif.com/demarrez-ici/

– I put it in the roor directory : http://clubeducatif.com/s2Member-server-check.php
but it says :
————
Do NOT access this file directly.
————

– I look at the folder you provide, about log files, which one do you want to access ?
I tried to zip (clickbank-ipn.log and clickbank-rtn.log) in one file “clickbank-logs.zip”, and try to give you access, but I never did that before, so could you try to take it and if you can’t, teach me what to do to be able to send you these logs files? (I put the maximum permissions, is that a good way?)
The webadress is : xxxxx

Regards.

David R.

  • This reply was modified 4 years, 7 months ago by  Cristián Lávaque. Reason: Removed logs link
Posted: Monday May 14th, 2012 at 3:34 am #13374

The server check file was named incorrectly in the zip file, that was my mistake. Please rename it to [hilite mono]check-my-server.php[/hilite] and try again.

I removed the link to your logs so they’re not accessible to others. Could you email them to me, every log file in the logs directory, even if it says PayPal, and send it using the contact form? Thanks! s2Member® » Private Contact Form

Posted: Monday May 14th, 2012 at 6:46 am #13389

Hello Cristiàn,

– I modify the file name : http://clubeducatif.com/check-my-server.php (it seems all green)

– I send it to you the log files.

Regards.

Posted: Monday May 14th, 2012 at 11:24 pm #13434

Yeah, it all looks green. It does mention that the memory allocation is a bit low and it recommends to raise it to at least 64MB. http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

I’ll look at the logs now.

Posted: Tuesday May 15th, 2012 at 5:50 am #13487

Good day Cristiàn,

– I send to you, by email, the infos you asked today.
– I tried to change the wp-settings.php, but here is what I find :
______________
// Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.
wp_initial_constants( );
______________

where can I paste this code?

define(‘WP_MEMORY_LIMIT’, ’64M’);

Thank you for your explanations.

SOME UPDATE INFORMATIONS FROM CLICKBANK :

I wonder if you know some other place, like clickbank, where I can sale my services, and get an affiliate tool in the same place ?

And if it is not possible, which kind of software should I buy to be able to do what I want to do : sale a 1 on 1 homework service and give 50% to the affiliates ?

I had mentioned in the first message that my approval request wasn’t accepted, that is because Clikbank(CB) do not accept the sale of services. As my product would be a one on one homework tutor, CB cannot accept it.

So I would appreciate the informations you provide to be able to use your software and be able to pay affiliate, and refunds if customer ask for?

Any ideas, or suggestions, will be welcomed!

example : I can create paypal buttons, and still use s2M to access to the private blog, and use an external software (I don’t know anyone) to pay affiliates and refund customers.
But I would appreciate a marketplace where every aspects will be include, is Commission Junction will do that?

Regards,
David R.

Posted: Tuesday May 15th, 2012 at 6:18 am #13489

Well, I’m not familiar with these, but I heard PayDotCom and JVzoo are alternatives to ClickBank. Not sure how to integrate them with s2Member right now, although the JVzoo guys were working on it and they may already support it, but I haven’t checked.

You can have s2Member with PayPal and add an affiliate management solution like iDevAffiliate, but that won’t make the payments or handle refunds for you, if I’m not mistaken, just do the tracking. Video » s2Member (iDevAffiliate Integration)

Viewing 25 replies - 1 through 25 (of 53 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.