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.

Clickbank Output Url?

Home Forums Community Forum Clickbank Output Url?

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

Topic Author Topic
Posted: Friday May 25th, 2012 at 2:43 pm #14619

Hi, I’ve searched up and down for this solution but seem to never see a straightforward answer on the forum.

I’m trying to use “a href=”[clickbank button shortcode output”url”]” but this isn’t providing me with a link when I update it on my page, it’s simply outputting the url right on my page and ignoring the fact it should be a link.

My reason for doing this is because I’m using a theme like s2Member, and instead of outputting an image, I’d like to use the a class”button class” feature of my theme which generates nice buttons, but am unable to do this because the output url isn’t working.

Is there a solution to this outside of having to ouput the url, log out, remove ip information etc, log back in, use that url pretty much hardcoded into the theme? I’m trying to avoid doing that, just don’t understand why the shortcode isn’t working in between a href without an image and output=”url”.

List Of Topic Replies

Viewing 16 replies - 1 through 16 (of 16 total)
Author Replies
Author Replies
Posted: Saturday May 26th, 2012 at 1:04 am #14661

It should work, unless you added the HTML in the Visual editor.

Oh, once when I used it like this, I found the Broken Link Checker plugin to mess it up. http://wordpress.org/extend/plugins/broken-link-checker/

Could you post a link to the page where you have this? Thanks!

Posted: Saturday May 26th, 2012 at 1:52 am #14666

Very sorry for that waste of time. How I overlooked that is beyond me. I guess that’s what happens when you’re working late hours. -__- You can close the thread now, thanks and again sorry.

Posted: Saturday May 26th, 2012 at 4:39 am #14676

No problem. I’m glad it was such an easy fix! Thanks for the update. :)

Posted: Saturday May 26th, 2012 at 4:50 am #14677

I have the link now setup correctly using the a href and shortcode, but now on my Thank You page after a Clickbank Test Transacation I’m getting the following error:

“Unable to verify $_SERVER[“HTTP_HOST”]” , etc…

All my Clickbank settings are correct and I’ve enabled logging, Here are what the files look like:

IPN LOG
PHP v5.2.17 :: WordPress® v3.3.2 :: s2Member® v120517 :: s2Member® Pro v120517
Memory 23.47 MB :: Real Memory 23.75 MB :: Peak Memory 23.57 MB :: Real Peak Memory 23.75 MB
www.***********.com/?s2member_pro_clickbank_notify=1
User-Agent: Jakarta Commons-HttpClient/3.0.1
array (
‘cprodtitle’ => ‘***************’,
‘ctranspaymentmethod’ => ‘TEST’,
‘cfuturepayments’ => ‘998’,
‘ccustzip’ => ‘00000’,
‘ccustshippingzip’ => ‘00000’,
‘ccustemail’ => ‘demo@***********.com’,
‘crebillstatus’ => ‘ACTIVE’,
‘ctransaffiliate’ => ”,
‘cupsellreceipt’ => ”,
‘corderamount’ => ‘4999’,
‘ccustcounty’ => ”,
‘ccurrency’ => ‘USD’,
‘ccustfirstname’ => ‘DEMO’,
‘crebillamnt’ => ‘9999’,
‘ctransaction’ => ‘TEST_SALE’,
‘ccuststate’ => ”,
‘caccountamount’ => ‘4524’,
‘ctranspublisher’ => ‘******’,
‘ctid’ => ”,
‘ccustshippingcountry’ => ‘US’,
‘cnextpaymentdate’ => ‘2012-06-26’,
‘cverify’ => ‘F2D47E59’,
‘cprocessedpayments’ => ‘1’,
‘cprodtype’ => ‘RECURRING’,
‘ccustcc’ => ‘US’,
‘ccustshippingstate’ => ”,
‘ctransreceipt’ => ‘TXPHW5E5’,
‘ccustfullname’ => ‘Demo User’,
‘cvendthru’ => ‘s2_p3=1+M&s2_p1=0+D&s2member_pro_clickbank_return=1&s2_subscr_id=s2-4fc090b4a7573&s2_custom=www.***********.com&_s2member_sig=1338020020-d19a2766c437dbbbc5ff00db8932ca67&s2_desc=*******************%29&s2_invoice=4&s2_customer_ip=74.103.217.90&’,
‘ctransrole’ => ‘VENDOR’,
‘ccustaddr2’ => ”,
‘ccustaddr1’ => ”,
‘ccustcity’ => ”,
‘ccustlastname’ => ‘USER’,
‘ctranstime’ => ‘1338020083’,
‘cproditem’ => ‘1’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Sat May 26, 2012 8:14:44 am UTC’,
1 => ‘s2Member POST vars verified with ClickBank®.’,
2 => ‘ClickBank® transaction identified as ( `SALE/RECURRING` ).’,
3 => ‘IPN reformulated. Piping through s2Member\’s core/standard PayPal® processor as `txn_type` ( `subscr_signup` ).’,
4 => ‘Please check PayPal® IPN logs for further processing details.’,
),
‘s2vars’ =>
array (
),
)

RTN LOG
PHP v5.2.17 :: WordPress® v3.3.2 :: s2Member® v120517 :: s2Member® Pro v120517
Memory 23.18 MB :: Real Memory 23.50 MB :: Peak Memory 23.29 MB :: Real Peak Memory 23.50 MB
www.***********.com/?s2member_pro_clickbank_return=1&item=1&cbreceipt=TXPHW5E5&time=1338020024&cbpop=83876A86&cbaffi=0&cname=Demo+User&cemail=demo%40***********.com&ccountry=US&czip=00000&s2_invoice=4&s2_p1=0+D&s2_p3=1+M&s2_desc=*******************%29&s2_custom=www.***********.com&s2_customer_ip=74.103.217.90&s2_subscr_id=s2-4fc090b4a7573&_s2member_sig=1338020020-d19a2766c437dbbbc5ff00db8932ca67
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
array (
‘item’ => ‘1’,
‘cbreceipt’ => ‘TXPHW5E5’,
‘time’ => ‘1338020024’,
‘cbpop’ => ‘83876A86’,
‘cbaffi’ => ‘0’,
‘cname’ => ‘Demo User’,
‘cemail’ => ‘demo@***********.com’,
‘ccountry’ => ‘US’,
‘czip’ => ‘00000’,
‘s2_invoice’ => ‘4’,
‘s2_p1’ => ‘0 D’,
‘s2_p3’ => ‘1 M’,
‘s2_desc’ => ‘*******************)’,
‘s2_custom’ => ‘www.***********.com’,
‘s2_customer_ip’ => ‘74.103.217.90’,
‘s2_subscr_id’ => ‘s2-4fc090b4a7573’,
‘_s2member_sig’ => ‘1338020020-d19a2766c437dbbbc5ff00db8932ca67’,
‘s2member_log’ =>
array (
0 => ‘Return-Data received on: Sat May 26, 2012 8:15:42 am UTC’,
1 => ‘s2Member POST vars verified with ClickBank®.’,
2 => ‘Sleeping for 5 seconds. Giving ClickBank® a chance to finalize processing.’,
3 => ‘Awake. It\’s Sat May 26, 2012 8:15:47 am UTC. Processing will continue.’,
4 => ‘Order API variables have been obtained from ClickBank®.’,
5 => ‘ClickBank® transaction identified as ( `SALE/STANDARD` ).’,
6 => ‘Return-Data reformulated. Piping through s2Member\’s core/standard PayPal® processor as `txn_type` ( `web_accept` ).’,
7 => ‘Please check PayPal® RTN logs for further processing details.’,
8 => ‘http://www.***********.com/?s2member_pro_clickbank_return&s2member_paypal_return=1&s2member_paypal_proxy=clickbank&s2member_paypal_proxy_use=standard-emails&txn_type=web_accept&txn_id=TXPHW5E5&custom&mc_gross=49.99&mc_currency=USD&tax=0.00&payer_email=demo%40***********.com&first_name=Demo&last_name=User&option_name1=Originating+Domain&option_selection1=www.***********.com&option_name2=Customer+IP+Address&option_selection2&item_number&item_name&s2member_paypal_proxy_verification=1338020147-3e0943c16e5e940d2cdbcf2082b275be’,
),
‘s2vars’ =>
array (
),
)

  • This reply was modified 4 years, 7 months ago by  Cristián Lávaque. Reason: Remove domain name
Posted: Saturday May 26th, 2012 at 5:04 am #14678

Odd, s2vars is empty. [hilite path]Dashboard -› s2Member® -› ClickBank® Buttons -› s2 Vars (Explained)[/hilite]

Could you also post the entries for that transaction from the other log files (even if they say PayPal in the name).

And, just in case, could you check your server with this tool? Upload it to your WordPress directory and load it in your browser. Let me know if it shows any problems. http://www.s2member.com/r/server-check-tool/

Can I see the page where you have the button too?

Thanks!

Posted: Saturday May 26th, 2012 at 6:17 am #14684

PayPal RTN
PHP v5.2.17 :: WordPress® v3.3.2 :: s2Member® v120517 :: s2Member® Pro v120517
Memory 25.38 MB :: Real Memory 25.75 MB :: Peak Memory 25.54 MB :: Real Peak Memory 25.75 MB
www.***********.com/?s2member_pro_clickbank_return&s2member_paypal_return=1&s2member_paypal_proxy=clickbank&s2member_paypal_proxy_use=standard-emails&txn_type=web_accept&txn_id=TXPHW5E5&custom&mc_gross=49.99&mc_currency=USD&tax=0.00&payer_email=demo%40***********.com&first_name=Demo&last_name=User&option_name1=Originating+Domain&option_selection1=www.***********.com&option_name2=Customer+IP+Address&option_selection2&item_number&item_name&s2member_paypal_proxy_verification=1338020147-3e0943c16e5e940d2cdbcf2082b275be
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
array (
‘txn_type’ => ‘web_accept’,
‘txn_id’ => ‘TXPHW5E5’,
‘custom’ => ”,
‘mc_gross’ => ‘49.99’,
‘mc_currency’ => ‘USD’,
‘tax’ => ‘0.00’,
‘payer_email’ => ‘demo@***********.com’,
‘first_name’ => ‘Demo’,
‘last_name’ => ‘User’,
‘option_name1’ => ‘Originating Domain’,
‘option_selection1’ => ‘www.***********.com’,
‘option_name2’ => ‘Customer IP Address’,
‘option_selection2’ => ”,
‘item_number’ => ”,
‘item_name’ => ”,
‘proxy_verified’ => ‘clickbank’,
‘s2member_log’ =>
array (
0 => ‘Return-Data received on: Sat May 26, 2012 8:15:48 am UTC’,
1 => ‘s2Member POST vars verified with a Proxy Key’,
2 => ‘Unable to verify `$_SERVER[“HTTP_HOST”]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.’,
3 => ‘Redirecting Customer to the Home Page, due to an error that occurred.’,
),
‘subscr_gateway’ => ‘clickbank’,
‘s2member_paypal_proxy’ => ‘clickbank’,
‘s2member_paypal_proxy_use’ => ‘standard-emails’,
‘s2member_paypal_proxy_verification’ => ‘1338020147-3e0943c16e5e940d2cdbcf2082b275be’,
)

PAYPAL IPN
PHP v5.2.17 :: WordPress® v3.3.2 :: s2Member® v120517 :: s2Member® Pro v120517
Memory 27.98 MB :: Real Memory 28.25 MB :: Peak Memory 28.03 MB :: Real Peak Memory 28.25 MB
www.***********.com/?s2member_paypal_notify=1&s2member_paypal_proxy=clickbank&s2member_paypal_proxy_use=standard-emails,subscr-signup-as-subscr-payment&s2member_paypal_proxy_verification=c4fd63557694e2b0c4f0c30559aa4a42
User-Agent: WordPress/3.3.2; http://www.***********.com
array (
‘txn_type’ => ‘subscr_signup’,
‘recurring’ => ‘1’,
‘txn_id’ => ‘TXPHW5E5’,
‘mc_amount1’ => ‘49.99’,
‘mc_amount3’ => ‘99.99’,
‘mc_gross’ => ‘99.99’,
‘mc_currency’ => ‘USD’,
‘tax’ => ‘0.00’,
‘payer_email’ => ‘demo@***********.com’,
‘first_name’ => ‘Demo’,
‘last_name’ => ‘User’,
‘option_name1’ => ‘Originating Domain’,
‘option_selection1’ => ‘www.***********.com’,
‘option_name2’ => ‘Customer IP Address’,
‘proxy_verified’ => ‘clickbank’,
‘s2member_log’ =>
array (
0 => ‘IPN received on: Sat May 26, 2012 8:14:44 am UTC’,
1 => ‘s2Member POST vars verified with a Proxy Key’,
2 => ‘Unable to verify `$_SERVER[“HTTP_HOST”]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.’,
),
‘subscr_gateway’ => ‘clickbank’,
‘s2member_paypal_proxy’ => ‘clickbank’,
‘s2member_paypal_proxy_use’ => ‘standard-emails,subscr-signup-as-subscr-payment’,
‘s2member_paypal_proxy_verification’ => ‘c4fd63557694e2b0c4f0c30559aa4a42’,
)

SERVER CHECK TOOL:
http://www.***********.com/s2member-server-check-120525.php
(seems everything checks out but it says I should increase wp_memory_limit but not required)

BUTTON LOCATED HERE:
http://www.***********.com/purchase

I was logged into my WP Dashboard on Chrome, but opened the site in IE, cleared cookies just in case, and went through with the test purchase on IE. (I don’t know if this would affect that process at all, I’d assume not, but figured it could be worth noting)

  • This reply was modified 4 years, 7 months ago by  Cristián Lávaque. Reason: Remove domain name
Posted: Saturday May 26th, 2012 at 6:28 am #14685

Thanks for the info.

Odd… You got

Unable to verify `$_SERVER[“HTTP_HOST”]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.’,

but the custom field seems okay:

‘s2_custom’ => ‘www.********.com’

Could you email your login info to take a look at the configuration? s2Member® » Private Contact Form

I’ll email Jason asking him what could cause this problem.

Posted: Sunday May 27th, 2012 at 9:30 am #14765

Exactly my thoughts. Anyway, I’ve emailed the login info.

Posted: Wednesday May 30th, 2012 at 1:07 am #14900

Just wondering if anything was looked into here. I’ve sent the login info as requested but I haven’t heard anything back yet regarding this. Thank you.

Posted: Wednesday May 30th, 2012 at 1:57 am #14902

Thanks, I did get the email with the info and forwarded it to Jason.

He’s checking his email twice a week now, so he should get to this one soon.

Sorry for the wait. Thanks for your patience.

Posted: Wednesday May 30th, 2012 at 10:46 am #14944
Staff Member

Thanks for the heads up on this request for support.

Your details were received, and I’m investigating this now.
I can tell you straight away, that this issue is specifically caused by a failure to parse this string returned by ClickBank:

‘cvendthru’ => ‘s2_p3=1+M&s2_p1=0+D&s2member_pro_clickbank_return=1&s2_subscr_id=s2-4fc090b4a7573&s2_custom=www.***********.com&_s2member_sig=1338020020-d19a2766c437dbbbc5ff00db8932ca67&s2_desc=Platinum+All+Access+Monthly+Membership+%28Every+Selection+-+NFL%2C+NBA%2C+MLB%2C+NCAAF%2C+NCAAB%2C+NHL%2C+Stat+Downloads%2C+Power+Rankings%2C+++More%29&s2_invoice=4&s2_customer_ip=74.103.217.90&

I can tell this is failing, because the following array in your log file is completely empty:

‘s2vars’ =>
array (
),
s2Member will fail to parse this string (intentionally), when it encounters an invalid checksum in the URL (i.e. to prevent fraudulent transactions and hacking attempts). I’m investigating this on your server now, to determine why this particular failure occurred, and that will shed light on the underlying issue.
Posted: Wednesday May 30th, 2012 at 4:13 pm #14974

Ok, I will wait to see the result. Thanks!

Posted: Friday Jun 1st, 2012 at 8:54 am #15157
Staff Member

We’re running diagnostics now, thanks for your patience. You should have a reply shortly.

Posted: Friday Jun 1st, 2012 at 9:57 am #15166
Staff Member

Investigation completed.

I found that your ClickBank® Button Shortcode, contains the following character:

The `+` Sign Is Causing A Problem
[s2Member-Pro-ClickBank-Button … desc=”… Power Rankings, + More)”

While s2Member® handles this character properly, it appears that ClickBank® has made some changes on their end, which are causing this character to be returned back to s2Member® (i.e. in the return response from ClickBank®), with the character interpreted as a [[space]], instead of as the URL-encoded %2B value.

Thanks for reporting this important issue. We’ve applied a patch to the development copy of s2Member Pro, so that + signs sent to ClickBank® are automatically transformed into the word “plus”.

Not ideal, but since the `+` character is getting corrupted on the ClickBank® side of things, we’ll have to prevent that character from being sent to ClickBank at all.

Your installation has been patched. This file was modified on your server:
/s2member-pro/includes/classes/gateways/clickbank/clickbank-button-in.inc.php

The next maintenance release of s2Member Pro will include this patch as well. In addition, we’re notifying ClickBank® of this issue, in hopes they’ll have it corrected on their end.

Suggestion (at least for now), please remove the `+` sign from your ClickBank® Button Shortcode, and perhaps re-word your description just a bit, to accommodate this bug. This is optional of course, because the patch file will now convert the `+` character into the word `plus`, but I suspect that you’ll want to have a say in this, so re-wording things a bit might be the way to go.

Please let us know if you continue to have trouble.

Posted: Friday Jun 1st, 2012 at 11:47 am #15175

Thank you very much for the investigation into this. I had suspected that it POSSIBLY could’ve been the “+” sign problem, but I felt when testing the buttons before that I had that included in the description then as well. I guess I was wrong.

Thank you very much for taking care of this for me, your hard work is appreciated.

Again thanks a lot, and I’m incredible glad I wound up choosing s2Member after trying out DAP and aMember, this plugin is incredible for it’s price. Thanks!

Posted: Friday Jun 1st, 2012 at 6:30 pm #15211

Thanks for the kudos! :)

I removed the domain name from the posts above.

Viewing 16 replies - 1 through 16 (of 16 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.