Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Troubleshooting › S2Member and Affiliate Plugin Integration – Affiliate sale tracking not working
Tagged: click through, s2member, s2Member integration, Sale
- This topic has 11 replies, 3 voices, and was last updated 12 years, 6 months ago by mshanhun.
-
AuthorPosts
-
January 5, 2012 at 12:33 pm #5188ArtisantopiaMember
Hi All!
I have integrated s2Member and WP Affiliate following these instructions: http://www.tipsandtricks-hq.com/wordpress-affiliate/integrating-s2member-plugin-with-the-wp-affiliate-software-368
And everything seems to be working.
But, when I run through a test, the sale shows up against the affiliate as a click through, not a sale – so no payout is awarded.
Using my affiliate link I access the sales page to purchase access to an ebook.
I am using the following s2Member shortcode on the sales page:
[s2Member-PayPal-Button sp=”1″ ids=”1381″ exp=”120″ desc=”Test button” ps=”paypal” lc=”” cc=”USD” dg=”0″ ns=”1″ custom=”example.com” ra=”0.01″ image=”default” output=”button” /]
The sale processes via PayPal and I’m redirected back to the page where I can download the purchased ebook.
So all this is working perfectly.
But it doesn’t show as a sale in WP Affiliate. It shows as a click through. Any idea what’s going wrong??
I have debugging turned on and I checked the ipn_handle_debug.log but it’s empty. I read through the other forum messages related to an empty log, but I don’t think any of them apply because I’m using s2Member.
Any advice would be greatly appreciated because I am thisclose to launching the site and this is the only issue holding me back now! Thanks!!
January 6, 2012 at 4:56 am #40362adminKeymaster– What version of the Affiliate platform plugin are you using?
– Post a link to the page where you have the payment button.
– Share the content of the “wp_affiliate_debug.log” debug log file (you can find it inside the “wp-affiliate-platform” directory).
January 6, 2012 at 5:06 am #40363ArtisantopiaMemberThanks admin,
I only bought it 2 days ago and it is v 4.9.9.1.
The purchase button is at [http://hibiscusmooncrystalacademy.com/welcome/individual-classes/]
wp_affiliate_debug.log:
[01/04/2012 11:54 PM] - SUCCESS :Start processing remote commission tracking request...
[01/04/2012 11:54 PM] - SUCCESS :Request does not have any GET or POST data.. cannot process request
[01/05/2012 12:08 AM] - SUCCESS :Start processing remote commission tracking request...
[01/05/2012 12:08 AM] - SUCCESS :Request does not have any GET or POST data.. cannot process requestI see all the errors above, but I’m not sure where to start to fix them. Any advice will be greatly appreciated!
thank you
January 6, 2012 at 6:20 am #40364adminKeymasterLooks like the S2Member plugin is not notifying the affiliate plugin after the transaction. Have you done step 3 of the integration documentation?
What value do you have in the following field of S2Member plugin?
s2Member's options ->API/Notifications Menu -> Payment Notification URL
January 6, 2012 at 6:30 am #40365ArtisantopiaMemberThank you.
Yes, I completed all steps of the integration instructions and the payment notification URL is:
[http://hibiscusmooncrystalacademy.com/wp-content/plugins/wp-affiliate-platform/api/post.php?secret=XXXX&ap_id=%%cv1%%&sale_amt=%%amount%%&buyer_email=%%payer_email%%]
I’m just wondering one thing (may or may not be related) in relation to shortcodes – I understand WP Affiliate requires the use of s2Member Paypal shortcodes – is that correct? If there was an issue with the shortcodes would it cause this problem?
Thanks for all your help admin – I’m sure we’ll get to the bottom of this soon!
January 6, 2012 at 12:02 pm #40366adminKeymasterThat looks good. You did replace “XXXX” with the actual secret word right?
Anyway, It does look like the s2Member is not sending the notification after the payment (it is suppose to send the notification in the specified notification URL). When it does you would see entries like the following in the debug file (there will be actual values there):
[01/06/2012 11:55 AM] – SUCCESS :Start processing remote commission tracking request…
[01/06/2012 11:55 AM] – SUCCESS :POST data: XXXX|%%cv1%%|%%amount%%|||%%payer_email%%
[01/06/2012 11:55 AM] – SUCCESS :Validating Request Data
……
You do have PayPal IPN enabled in your PayPal account right? Otherwise PayPal won’t send the IPN after the payment. Can you do another test transaction now so I can see what it does?
January 9, 2012 at 11:21 am #40367ArtisantopiaMemberThank you admin.
Yes, I did replace the secret word with XXXX!!
And yes, I have the PayPal IPN enabled with the following entered (as per s2Member instructions): [http://hibiscusmooncrystalacademy.com/?s2member_paypal_notify=1]
I have been working through and disabling plugins to see if there is a conflict. I haven’t had any luck yet, sales are still showing as clicks.
Here is the debug file showing the last few tests:
[01/09/2012 11:14 AM] - SUCCESS :PayPal PDT detected - checking if commission need to be tracked...<br />
[01/09/2012 11:14 AM] - SUCCESS :Nothing to do... 3rd party integration is disabled or the auth token is missing.<br />Starting to pull my hair out
Could you please take another look? Thanks
January 9, 2012 at 1:07 pm #40368ArtisantopiaMemberUPDATE!!!!
Sales are now showing up as sales.
But…. not all sales are showing up. Some worked, some failed.
debug log:
[01/09/2012 1:00 PM] - SUCCESS :Start processing remote commission tracking request...<br />
[01/09/2012 1:00 PM] - SUCCESS :POST data: xxxx|testaff|0.02|||emailremoved<br />
[01/09/2012 1:00 PM] - SUCCESS :Validating Request Data<br />
[01/09/2012 1:00 PM] - SUCCESS :wp_aff_award_commission_unique() - Txn ID:<br />
[01/09/2012 1:00 PM] - SUCCESS :Calling process commission function.<br />
[01/09/2012 1:00 PM] - SUCCESS :Referrer: testaff, Sale Amount: 0.02, Transaction ID: Item ID: , Buyer Email: emailremoved, Custom Commission Rate:<br />
[01/09/2012 1:00 PM] - SUCCESS :The sale has been registered in the WP Affiliate Platform Database for referrer: testaff with amount: 0.01<br />
[01/09/2012 1:00 PM] - SUCCESS :Commission awarded!<br />
[01/09/2012 1:00 PM] - SUCCESS :PayPal PDT detected - checking if commission need to be tracked...<br />
[01/09/2012 1:00 PM] - SUCCESS :Nothing to do... 3rd party integration is disabled or the auth token is missing.<br />Ok, so something has obviously worked, but we still have issues.
Thoughts, ideas??
thanks
January 10, 2012 at 3:15 am #40369adminKeymasterAs far as I can see the sales are tracking fine. Don’t try to read through every line of the debug file as it has way more information (some of it may not be relevant to you).
I can see that the transaction you made for “testaff” on the 9th is getting tracked fine from the following debug.
[01/09/2012 1:00 PM] – SUCCESS :Referrer: testaff, Sale Amount: 0.02, Transaction ID: Item ID: , Buyer Email: emailremoved, Custom Commission Rate:
[01/09/2012 1:00 PM] – SUCCESS :The sale has been registered in the WP Affiliate Platform Database for referrer: testaff with amount: 0.01
[01/09/2012 1:00 PM] – SUCCESS :Commission awarded!
If this is working then it means that it will do the same for any affiliate.
January 12, 2012 at 10:27 am #40370ArtisantopiaMemberOk, just wanted to follow up and let you know how I solved this. I think you need to update your integration guide (http://www.tipsandtricks-hq.com/wordpress-affiliate/integrating-s2member-plugin-with-the-wp-affiliate-software-368) to include a few extra steps.
s2Member has a very useful option of selling access to Specific Posts/Pages, which is what I want to use. To have those sales post through to WP Affiliate you need to copy the URL in step 3 of the integration guide into all the relevant fields on the s2Member -> API Notifications page, including Specific Post/Page ~ Sales Notifications.
Thank you again for all your help.
January 13, 2012 at 5:09 am #40371adminKeymasterThey must have added this feature recently but we weren’t notified so we didn’t know. I have updated the integration instruction.
May 27, 2012 at 12:02 pm #40372mshanhunParticipantThanks so much for this Artisantopia! That’s what I was missing too!
-
AuthorPosts
- You must be logged in to reply to this topic.