Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eMember – Clickbank IPN error

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › eMember – Clickbank IPN error

  • This topic has 13 replies, 3 voices, and was last updated 4 years, 9 months ago by wzp.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • August 6, 2020 at 8:29 am #15634
    itapoppy
    Participant

    Hi,

    I’ve just integrated Clickbank but when I do a test purchase I see an error in the debug file and new account is not created.

    Note I’m testing on Clickbank with demo credit card and product is not approved yet.

    MY FORM:

    <form action=”https://myname.pay.clickbank.net/?cbitems=5&vtid=pricing&cbskin=30354&#8243; method=”post”>

    <input name=”membership_level_id” type=”hidden” value=”2″ />

    <button class=”access klj f2f” style=”border:none;margin-top:0″><i class=”fa fa-unlock” style=”color: white”></i> Get full access<span class=”price miu”>Only $4/month</span></button>

    </form>

    IPN DEBUG:

    ……….

    [txn_id] => WDQDA7DN

    [custom] => stdClass Object

    (

    [iv] => NkREOUYwRjhdsadMDY2Mg%3D%3D

    [params] => gS5DHIPKi%2B%2B0ykT6fn2isOLjbZVsSBxfSEG4ej8SJcmj2hG%2Fv0AdwiVdAkeh69r9sBG0Db9xIpdTtv2JFjkrTj5WYiTsPd1r0v8YUngdoCQKvUHYeJiQ1KV2R4EGLcf3zP2FLoz28wMukBqS0SMXEFL7B4NNrVn5nWLj7uTCzUwuJhehy3MUs1heg71eMsp7iqUQxthtqAKjNT5xZvoXptFDhttx7dasdsa6lne7M14OcLKe7ADPfZ%2BDP5H9AQ3I5tqUQbzwha0CZzZ4zAKDw1cLy5TNTfwW2wVVfbPbs9tZbK45BbDXLQr86XpAuWUOzKFdFQ9Led2NEMCOH9VNTAw%3D%3D

    )

    )

    [08/06/2020 8:13 AM] – SUCCESS :

    stdClass Object

    (

    [iv] => NkREOUYwRjhdsadMDY2Mg%3D%3D

    [params] => gS5DHIPKi%2B%2B0ykT6fn2isOLjbZVsSBxfSEG4ej8SJcmj2hG%2Fv0AdwiVdAkeh69r9sBG0Db9xIpdTtv2JFjkrTj5WYiTsPd1r0v8YUngdoCQKvUHYeJiQ1KV2R4EGLcf3zP2FLoz28wMukBqS0SMXEFL7B4NNrVn5nWLj7uTCzUwuJhehy3MUs1heg71eMsp7iqUQxthtqAKjNT5xZvoXptFDhttx7as06v6lne7M14dsadsaPfZ%2BDP5H9AQ3I5tqUQbzwha0CZzZ4zAKDw1cLy5TNTfwW2wVVfbPbs9tZbK45BbDXLQr86XpAuWUOzKFdFQ9Led2NEMCOH9VNTAw%3D%3D

    )

    [08/06/2020 8:13 AM] – SUCCESS :Payment received for membership level ID:

    [08/06/2020 8:13 AM] – FAILURE :Error! The membership level ID doesn’t exist on this site. Can’t process this payment.

    What is wrong?

    August 6, 2020 at 10:02 pm #80840
    wzp
    Moderator

    Did you remember to add the CORRECT membership level ID to your button code? It looks like you entered a level ID that doesn’t exist. So make sure to go to your membership level menu and check the ID value with the one you put in the button’s code.

    • https://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-and-clickbank-integration-470#menu-item-589:~:text=Add%20the%20%E2%80%9Cmembership_level_id%E2%80%9D%20variable%20in%20your%20ClickBank%20button%20code.

    August 7, 2020 at 6:54 am #80841
    itapoppy
    Participant

    I got it there:

    Membership Level > Manage Levels > Level ID = 2

    August 7, 2020 at 6:55 am #80842
    itapoppy
    Participant

    From the log I don’t understand if membership_level_id is passed as wrong OR it is NOT passed to the IPN.

    August 7, 2020 at 11:31 pm #80843
    wzp
    Moderator

    It’s not being passed back in the IPN.

    Please look carefully at the button code example:

    https://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-and-clickbank-integration-470#menu-item-589:~:text=Example%20Clickbank%20Button%20Code

    Your button code should have the level ID in it, as well.

    August 8, 2020 at 12:41 am #80844
    admin
    Keymaster

    I don’t think clickbank allows you to a full checkout that sends a proper IPN with the “demo” option. Clickbank doesn’t have a fully function “sandbox” like PayPal or Stripe has. Something to keep in mind when testing with Clickbank.

    Which IPN notification version of Clickbank did you set for that? Are you using version 6.0?

    August 8, 2020 at 12:31 pm #80845
    itapoppy
    Participant

    I use 6.0. I had other plugins in the past and I know that IPN data in TEST mode are a bit different.

    I must test it before going live with affiliates.

    Should I do a few real purchases to test it or I add a variable to your ipn .php file to fake the membership_id value (I only have 1 level in my site)?

    August 9, 2020 at 12:08 am #80846
    wzp
    Moderator

    Our usual recommendation, for those who want to conduct end-to-end testing; is to perform a few “low-value (cost)” “live” transactions.

    August 9, 2020 at 1:40 pm #80847
    itapoppy
    Participant

    1) Do you mean to use a Clickbank coupon code of 99%?

    2) Does Emember work with coupons considering final price would be different from the default membership initial cost?

    August 9, 2020 at 6:38 pm #80848
    wzp
    Moderator

    I mean, that for the purposes of ensuring that your ClickBank integration is correct; create a $1 membership button (the REAL price) and see if everything processes correctly.

    August 10, 2020 at 6:55 am #80849
    itapoppy
    Participant

    In order to create a REAL price I must create a real product that need to be approved by Clickbank.

    Please answer my question:

    Does Emember work with coupons considering final price would be different from the default membership initial cost?

    August 10, 2020 at 11:09 pm #80850
    wzp
    Moderator

    1. When you are using ClickBank to process membership sales; eMember has no knowledge of what you are charging. ClickBank handles all the purchase, checkout and any coupon processing.

       

    2. After ClickBank processes the purchase; an IPN is sent to eMember. The IPN is price agnostic. All it does is tell eMember to “go ahead and create the membership.”

       

    In our earlier replies; we were simply telling you; that you should use a “real purchase,” instead of sandbox mode. If you want to add the extra “moving part” of doing it with a coupon, go ahead.

    August 11, 2020 at 7:04 am #80851
    itapoppy
    Participant

    ok, now it is clear.

    [first_name] => Samario

    [last_name] => Ranti

    [txn_id] => WDQDA7DN

    [custom] => stdClass Object

    (

    [iv] => NkREOUYwRjhFNDZBMDY2Mg%3D%3D

    [params] => gS5DHIPKi%2B%2B0ykT6fn2isOLjbZVsSBxfSEG4ej8SJcmj2hG%2Fv0AdwiVdAkeh69r9sBG0Db9xIpdTtv2JFjkrTj5WYiTsPd1r0v8YUngdoCQKvUHYeJiQ1KV2R4EGLcf3zP2FLoz28wMukBqS0SMXEFL7B4NNrVn5nWLj7uTCzUwuJhehy3MUs1heg71eMsp7iqUQxthtqAKjNT5xZvoXptFDhttx7as06v6lne7M14OcLKe7ADPfZ%2BDP5H9AQ3I5tqUQbzwha0CZzZ4zAKDw1cLy5TNTfwW2wVVfbPbs9tZbK45BbDXLQr86XpAuWUOzKFdFQ9Led2NEMCOH9VNTAw%3D%3D

    )

    In the debug file I notice that ‘custom’ vendor variables is the only value ‘encrypted’ and membership_level_id should be inside it.

    All the other values are correctly shown.

    Is it normal or this is the issue why Emember doesn’t get the membership_level_id?

    August 11, 2020 at 7:15 pm #80852
    wzp
    Moderator

    Is it normal or this is the issue why Emember doesn’t get the membership_level_id?

    Please see the previous explanation from @admin:

    https://support.tipsandtricks-hq.com/forums/topic/emember-clickbank-ipn-error#post-95022

  • Author
    Posts
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ