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™
<?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 ();
}
}
?>
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.
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)
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!
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.
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.',
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.',
http://www.detoxauthority.net/ultiseries/wp-login.php?action=register
I think the problem was with your custom Return URL.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
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+.FluxFlux wrote:Hi Jason,
could you briefly expand on the custom URL issue here you mentioned ? and how to fix this ?
1) Do i still need to create the clickbank-return.php file ?
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.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.
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.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.
Users browsing this forum: Google [Bot] and 1 guest