PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Correct Clickbank "thank you' page

s2Member Plugin. A Membership plugin for WordPress®.

Correct Clickbank "thank you' page

Postby burltree66 » June 20th, 2011, 1:13 pm

Ok so here's my problem... Everything I've read on the posts here tell me NOT to use the standard s2member thank you page: http://www.detoxauthority.net/ultiseries/?s2member_pro_clickbank_return=1, but instead to use a customized one... I did that and I was NOT notified of sales made over the weekend. Plus, no new members were added via the User panel which lead me to suspect that no "sign-up confirmation email was sent out.

Can anyone provide clarity on how to properly configure ty pages and user reg. via clickbank. Should I be used the s2Member page or a custom ty page?

PS - I have all the other Clickbank options (Account details, IPN v2.1 integration and sign up confirmation email set up).

Thanks!

JG
User avatar
burltree66
Registered User
Registered User
 
Posts: 22
Joined: May 26, 2011

Re: Correct Clickbank "thank you' page

Postby Cristián Lávaque » June 20th, 2011, 10:07 pm

Hi JG. :)

Could you tell me what thank-you page you're using and did you do anything else to have s2Member work with a thank-you page that isn't the standard one? What other posts did you read about this?

The s2Member thank-you page sets some cookies that are needed for s2Member to know how to deal with the paying user on registration. Do you have open registration enabled or disabled? If disabled, the user should not be able to even create the account without those cookies set. WP Admin -> s2Member -> General Options -> Open Registration

If you need ClickBank customers to land on a custom thank-you page, you can use this hack:

Create the directory/file /wp-content/mu-plugins/s2hacks.php (mu: must use) and add this code (no spaces or new lines before the <?php or after ?>)

Code: Select all
<?php
add_action 
('ws_plugin__s2member_during_paypal_return_during_subscr_signup_wo_update_vars', 'my_clickbank_return');
function my_clickbank_return () {
    if ($_REQUEST['s2member_paypal_proxy'] === 'clickbank') {
        echo '<script type="text/javascript">' . "\n";
        echo "window.location = 'http://yoursite.com/custom-thankyou';" . "\n";
        echo '</script>' . "\n";
        /*
        Note. Don't use wp_redirect() or header("Location: xxx") here.
        The cookies set by s2Member may not be read properly.
        Always use window.location = ''; ( as shown above ).
        */
        exit ();
    }
}
?>


I hope it helps.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Correct Clickbank "thank you' page

Postby burltree66 » June 20th, 2011, 10:35 pm

Okay, thanks for explaining this, Christian. I did not do anything else to modify my custom ty page (which is probably why it didn't work, lol). I've since switched back to the standard s2member ty page and ran a test purchase. I was correctly redirected to my site's login/register page, however, the s2member "registration email" never showed up my inbox. I do have open registration "disabled", so I guess the question now is how to get the email/registration to prompt after purchase.

Also, is there a way to have the ty page redirect to blank registration page after purchase rather than login page (with a link to registration)?

Thanks. I appreciate your patience with me on this...
User avatar
burltree66
Registered User
Registered User
 
Posts: 22
Joined: May 26, 2011

Re: Correct Clickbank "thank you' page

Postby Cristián Lávaque » June 20th, 2011, 11:04 pm

Well, you can have a custom thank-you page if you use the hack I gave you, and the person will be able to register later following the link you provide.

I'm not sure what could be wrong with the registration email, though. Are other emails being sent by WordPress?

Could you show me the log entries for those transactions/registrations x'ing out any private data? You need to have enabled WP Admin -> s2Member -> ClickBank Options -> ClickBank Account Details -> Enable Logging Routines and after the transactions you'll find the log in the /wp-content/plugins/s2member-logs/ directory via FTP.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

S2 Member Pro

Postby burltree66 » July 11th, 2011, 5:34 pm

Cristián Lávaque wrote:OK, email it to me using the contact form.

About where the URL goes:

Copy the URL s2Member provides here WP Admin -> s2Member -> ClickBank Options -> Thank You Page and paste in your ClickBank account, for your product's thank-you page URL.

That URL will only work when ClickBank sends the person there after a purchase, so you can run a test purchase using the credit card details ClickBank gives you for testing purposes.


Hi Cristián, how is your quote above any different from what we've been attempting to do without success?

You have the screenshots of my clickbank integration config. I've run a test purchase and got an error (which I included in the screenshots)

Can you tell me what needs to be fixed on my end?

Much appreciated!
JG
User avatar
burltree66
Registered User
Registered User
 
Posts: 22
Joined: May 26, 2011

Re: S2 Member Pro

Postby Cristián Lávaque » July 11th, 2011, 10:00 pm

burltree66 wrote:You have the screenshots of my clickbank integration config. I've run a test purchase and got an error (which I included in the screenshots)


Thanks for the screenshots, JG.

I got the screenshots for all the s2Member settings, but I'm missing a couple of the ClickBank ones. From CB Admin I only got your Clerk Key, but am missing the Dev Key and IPN Key. I can't tell you exactly where to find those because your account has a different interface from the standard one I get in my account.

Could you please send me those screenshots? Thanks!
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: S2 Member Pro

Postby burltree66 » July 12th, 2011, 10:09 am

Cristián Lávaque wrote:
burltree66 wrote:You have the screenshots of my clickbank integration config. I've run a test purchase and got an error (which I included in the screenshots)


Thanks for the screenshots, JG.

I got the screenshots for all the s2Member settings, but I'm missing a couple of the ClickBank ones. From CB Admin I only got your Clerk Key, but am missing the Dev Key and IPN Key. I can't tell you exactly where to find those because your account has a different interface from the standard one I get in my account.

Could you please send me those screenshots? Thanks!


Hi Cristián, new screenshots sent. I was only able to create the clerk/API key by setting up a Clickbank Master account. Please let me know what changes I need to make to get this working.

Thank you!!
User avatar
burltree66
Registered User
Registered User
 
Posts: 22
Joined: May 26, 2011

Re: Correct Clickbank "thank you' page

Postby Cristián Lávaque » July 12th, 2011, 2:09 pm

Got your screenshots. Thanks again. The settings all look fine. Could you now send me the log entries please? I need to see them to have a better idea of what's going on between ClickBank and s2Member during the transaction.

Cristián Lávaque wrote:Could you show me the log entries for those transactions/registrations x'ing out any private data? You need to have enabled WP Admin -> s2Member -> ClickBank Options -> ClickBank Account Details -> Enable Logging Routines and after the transactions you'll find the log in the /wp-content/plugins/s2member-logs/ directory via FTP.


It'd be better if you run a new test purchase and send me the log entry for it insted of older transactions. I'll be waiting for it. Thanks! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Correct Clickbank "thank you' page

Postby burltree66 » July 12th, 2011, 2:43 pm

I've sent you the log files. I did notice on the most recent test purchase that Clickbank sent me to the Funnel opt-in page upon completing the transaction, it SHOULD have sent me to the registration page.
User avatar
burltree66
Registered User
Registered User
 
Posts: 22
Joined: May 26, 2011

Re: Correct Clickbank "thank you' page

Postby Cristián Lávaque » July 12th, 2011, 2:50 pm

I see. I haven't received the logs, they should get to me soon, though.

Tell me, did you use the hack mentioned earlier? viewtopic.php?f=4&t=10220&view=unread#p21265 If so, what URL did you point the redirection to?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Correct Clickbank "thank you' page

Postby burltree66 » July 12th, 2011, 3:18 pm

Hi Cristián, logs have just been sent to you. I noticed that in the latest test purchase, I was redirected to the funnel opt-in page, NOT the registration page. That is incorrect.

Also, I have not used the hack you mentioned because I was sure where/how to add it. I work with a coder and can ask him to use hack. However, I prefer to use s2member ty page as to streamline the checkout process.
User avatar
burltree66
Registered User
Registered User
 
Posts: 22
Joined: May 26, 2011

Re: Correct Clickbank "thank you' page

Postby Cristián Lávaque » July 13th, 2011, 2:07 am

Thanks for the logs, Jaison. In the paypal-rtn.log file, in the last transaction you'll see these two lines:

5 => 'Unable to modify Subscription. The existing User ID is associated with an Administrator. Stopping here. Otherwise, an Administrator could lose access.',
6 => 'Redirecting Customer to the Login Page, due to an error that occurred.',


Could you try a test purchase with a new email address and be logged out of your admin account when you try? Let me know how that goes, send me the new log entries if it doesn't work.

Thanks!
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Correct Clickbank "thank you' page

Postby burltree66 » July 14th, 2011, 7:21 am

Hi, I tried the test purchase and sent you the new logs yesterday. Any word on the results?

Thx
User avatar
burltree66
Registered User
Registered User
 
Posts: 22
Joined: May 26, 2011

Re: Correct Clickbank "thank you' page

Postby Cristián Lávaque » July 14th, 2011, 1:02 pm

Just looked at your latest logs and it all looks fine. :)

5 => 'Registration Cookies set on (web_accept|subscr_signup|subscr_payment) w/o update vars.',
6 => 'Redirecting Customer to Registration Page. They need to Register now.',


The test user should now be able to register an account because he has all the right cookies in place for s2Member to let him and set the new account at the level he purchased.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Correct Clickbank "thank you' page

Postby Jason Caldwell » July 16th, 2011, 5:12 pm

Thanks for bringing this thread to my attention.
I just took a look at the logs also. They look good.

According to the logs, the Customer was redirected to your Registration Page immediately after checkout.
Code: Select all
http://www.detoxauthority.net/ultiseries/wp-login.php?action=register
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Correct Clickbank "thank you' page

Postby burltree66 » July 16th, 2011, 6:23 pm

Hi Jason, Cristián was very helpful in sorting this out with me. I wonder, though, what caused the errrora to occur in the first place? I made no actual changes to the configs. I just sent screenshots. Now it works!

PS- Zeitgeist rocks!

Jaison
User avatar
burltree66
Registered User
Registered User
 
Posts: 22
Joined: May 26, 2011

Re: Correct Clickbank "thank you' page

Postby Cristián Lávaque » July 16th, 2011, 11:03 pm

I'm glad it works. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Correct Clickbank "thank you' page

Postby Jason Caldwell » July 17th, 2011, 12:04 am

burltree66 wrote:Hi Jason, Cristián was very helpful in sorting this out with me. I wonder, though, what caused the errrora to occur in the first place? I made no actual changes to the configs. I just sent screenshots. Now it works!

PS- Zeitgeist rocks!

Jaison
I think the problem was with your custom Return URL.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Correct Clickbank "thank you' page

Postby FluxFlux » September 6th, 2011, 4:58 am

Hi Jason,
could you briefly expand on the custom URL issue here you mentioned ? and how to fix this ?
User avatar
FluxFlux
Registered User
Registered User
 
Posts: 4
Joined: September 5, 2011

Re: Correct Clickbank "thank you' page

Postby burltree66 » September 6th, 2011, 11:43 am

Hello, I was originally directed to use a custom return url with s2member and clickbank. However, once I started working directly with Cristián, I was able to get it to work with the standard s2member return url.

I wish I could be of more help, but it was above my head. I just supplied the necessary info as requested.

~JG
User avatar
burltree66
Registered User
Registered User
 
Posts: 22
Joined: May 26, 2011

Re: Correct Clickbank "thank you' page

Postby Jason Caldwell » September 6th, 2011, 5:34 pm

Thanks for the follow-up.
FluxFlux wrote:Hi Jason,
could you briefly expand on the custom URL issue here you mentioned ? and how to fix this ?
Yea, this thread is a bit outdated now. Let me clarify things a bit here. You should always use the default ClickBank Thank-You Page supplied by s2Member, as shown in the screenshot below. However, it is also possible to customize this default Thank-You Page in a variety of ways, also shown in the screenshot below, starting with s2Member Pro v110815+.

clickbank-ty-page.png


As another alternative, you can ( optionally )
use your own Custom Thank-You Page with these instructions, starting with s2Member Pro v110815+.
clickbank-ty-page-2.png

clickbank-ty-page3.png
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Correct Clickbank "thank you' page

Postby FluxFlux » September 7th, 2011, 9:58 am

Thanks JG for the reply.,

Jason, i know your busy and you have a lot of the posts to reply thus I grateful that you do look at our problems. This might sound like a noobish question but from what i gather from the latest S2members pro version you mentioned above is that if i want to retain my current Thank you page with click bank i simply need to modify my product thank you page in Clickbank to this : http://www.example.com/?s2member_pro_cl ... k-you.html

1) Do i still need to create the clickbank-return.php file ?
2) the above link, does it need to be code this way in Clickbank : http://www.example.com/?s2member_pro_clickbank_return=1&s2member_pro_clickbank_return_success=http%3A%2F%2Fwww.example.com%2Fthank-you.html
3) What are the likely things to look out for in the logs as I've been trying to figure this out but no apparently error messages. the IPN seems to be working fine with S2members pro just that purchasers just dont get the registration email.
4) Is re-installing s2members and s2members pro a likely cause of this issue ? I vaguely remember no problem with s2 members installation but a small error somewhere with s2members pro. OTher than this, it appears that the installation is working fine.
User avatar
FluxFlux
Registered User
Registered User
 
Posts: 4
Joined: September 5, 2011

Re: Correct Clickbank "thank you' page

Postby Jason Caldwell » September 9th, 2011, 6:12 pm

1) Do i still need to create the clickbank-return.php file ?

No. In your case, all you need to do is route your custom Thank-You Page through s2Member,
by using the format you already have, which is as follows:
Code: Select all
http://www.example.com/?s2member_pro_clickbank_return=1&s2member_pro_clickbank_return_success=http%3A%2F%2Fwww.example.com%2Fthank-you.html
* That's it :-)

2) the above link, does it need to be code this way in Clickbank : http://www.example.com/?s2member_pro_clickbank_return=1&s2member_pro_clickbank_return_success=http%3A%2F%2Fwww.example.com%2Fthank-you.html
Yes, when you enter your Thank-You URL at ClickBank, this is what you'll need to give them.

3) What are the likely things to look out for in the logs as I've been trying to figure this out but no apparently error messages. the IPN seems to be working fine with S2members pro just that purchasers just dont get the registration email.

The Signup Confirmation Email is handled by the IPN routine, and will be logged in two places. (1) Inside your /s2member-logs/clickbank-ipn.log file (2) Inside s2Member's core PayPal processor, which is what ultimately handles the IPN response from ClickBank, after having been re-routed by s2Member's ClickBank integration. This will be logged inside /s2member-logs/paypal-ipn.log file, immediately after the entry is created in your /clickbank-ipn.log file.

If Customers are not receiving a Signup Confirmation Email, you should find an error message inside one of those logs, or if there are NO log entries at all, that would also be a bad sign; indicating that your IPN integration is not complete, following the instructions provided by:
s2Member -> ClickBank Options -> ClickBank IPN Integration.

If you continue to have problems, please post a copy of the related log entries from both:
clickbank-ipn.log and paypal-ipn.log. Also, you may want to run a quick test on your server to be sure that your server is capable of sending email period, just in case the email is being processed by s2Member, but it's failing at the server level.

4) Is re-installing s2members and s2members pro a likely cause of this issue ? I vaguely remember no problem with s2 members installation but a small error somewhere with s2members pro. OTher than this, it appears that the installation is working fine.
No, not unless you have an outdated configuration of s2Member. Otherwise, no, I don't see a re-installation of s2Member or s2Member Pro causing this.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Correct Clickbank "thank you' page

Postby FluxFlux » September 12th, 2011, 6:54 pm

Jason / Cristian,

Thanks for the help. I found out the problem causing my integration was my WP version. Although i was using above 3.1.2 that you guys recommended for the latest patch, after i upgraded my WP to current build version everything ran smoothly.
User avatar
FluxFlux
Registered User
Registered User
 
Posts: 4
Joined: September 5, 2011

Re: Correct Clickbank "thank you' page

Postby Jason Caldwell » September 13th, 2011, 2:57 pm

Glad to hear you got this working.
Thanks for reporting back on this.
~ MUCH appreciated!
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Next

Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest

cron