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.

About: Leho Kraav

Sorry, I've not written a description yet. I'll get to it soon!


My Favorite Topics

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Clickbank Pitchplus

By:  Terry Orletsky in: Community Forum

voices: 1
replies: 0

3 years, 4 months ago  Terry Orletsky

Viewing topic 1 (of 1 total)

Topics I'm Subscribed To

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Protect ClickBank upsell clickbank_postvars()

By:  Leho Kraav in: Community Forum

voices: 1
replies: 5

3 years, 2 months ago  Leho Kraav

Clickbank Pitchplus

By:  Terry Orletsky in: Community Forum

voices: 1
replies: 0

3 years, 4 months ago  Terry Orletsky

Viewing 2 topics - 1 through 2 (of 2 total)

Topics I've Started

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Protect ClickBank upsell clickbank_postvars()

By:  Leho Kraav in: Community Forum

voices: 1
replies: 5

3 years, 2 months ago  Leho Kraav

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Monday Nov 4th, 2013 at 8:49 pm #60868
Leho Kraav
Username: lkraav

I’ve come to the conclusion that I using clickbank_postvars() to verify $REQUEST[“cbpop”] should works after all. Confirmation on this would be nice.

Unfortunately during upsell flow this verification routine is blocked by the $_REQUEST[“s2member_pro_clickbank_return”] check. This means I have to copy-paste the whole routine for myself.

Is there a better way? Is there an oversight in the library regarding the problem I’ve presented above?

  • This reply was modified 3 years, 2 months ago by  Leho Kraav.
Posted: Monday Nov 4th, 2013 at 8:32 pm #60866
Leho Kraav
Username: lkraav

Right, during upsell phase apparently we don’t have any clickbank return just yet

if(!empty($_REQUEST["s2member_pro_clickbank_return"]) # fails

So back to s2member_sig_ok(). Why does it fail in template_redirect()?

Posted: Monday Nov 4th, 2013 at 7:48 pm #60865
Leho Kraav
Username: lkraav

I am still stuck.

add_action( 'template_redirect', 'my_template_redirect' );
function my_template_redirect() {
    if ( is_page( "upsell" ) ) {
        if ( current_user_can( "access_s2member_level1" ) ) return;

        if ( ! is_array( c_ws_plugin__s2member_pro_clickbank_utilities::clickbank_postvars() ) )
            die( "failed" );
    }
}

For some reason clickbank_postvars() doesn’t not validate the request. Is this maybe because it’s already been done in “init” action and I’m running it twice?

  • This reply was modified 3 years, 2 months ago by  Leho Kraav.
Posted: Monday Nov 4th, 2013 at 7:04 pm #60862
Leho Kraav
Username: lkraav

Sounds like s2member_sig_ok() is something I’d want to use. I wonder if just giving it the whole URL for processing is good enough for verification..

Posted: Monday Nov 4th, 2013 at 6:50 pm #60861
Leho Kraav
Username: lkraav

Actually I’m seeing that upsell return URL contains a whole bunch of request parameters to check against.

Now the question is which ones should I choose and what are the values to check for integrity?

Viewing 5 replies - 1 through 5 (of 5 total)

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.