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, 6 months ago by
wzp.
-
AuthorPosts
-
August 6, 2020 at 8:29 am #15634
itapoppy
ParticipantHi,
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″ 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 #80840wzp
ModeratorDid 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.
August 7, 2020 at 6:54 am #80841itapoppy
ParticipantI got it there:
Membership Level > Manage Levels > Level ID = 2
August 7, 2020 at 6:55 am #80842itapoppy
ParticipantFrom 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 #80843wzp
ModeratorIt’s not being passed back in the IPN.
Please look carefully at the button code example:
Your button code should have the level ID in it, as well.
August 8, 2020 at 12:41 am #80844admin
KeymasterI 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 #80845itapoppy
ParticipantI 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 #80846wzp
ModeratorOur 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 #80847itapoppy
Participant1) 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 #80848wzp
ModeratorI 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 #80849itapoppy
ParticipantIn 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 #80850wzp
Moderator- 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.
- 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 #80851itapoppy
Participantok, 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 #80852wzp
ModeratorIs 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
- 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.
-
AuthorPosts
- You must be logged in to reply to this topic.