Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Troubleshooting › WP affiliate – PayPal IPN validation failed since update
- This topic has 11 replies, 2 voices, and was last updated 10 years, 11 months ago by FJourjon.
-
AuthorPosts
-
December 7, 2013 at 2:14 pm #10192FJourjonSpectator
Hello,
I am using WP affiliate with a Paypal hosted button (Integration option 2).
During my tests, everything was working fine except that the sales for the affliliates were given to ID : [wp_aff_custom_args]
I read on the forum that an update of the plugin solved the problem for a person. So I updated the plugin and since, sales are not tracked (clicks are). I activated debug, and this is what I get :
[12/07/2013 1:40 PM] – SUCCESS :Paypal Class Initiated by 213.186.33.17
[12/07/2013 1:40 PM] – SUCCESS :Post string : (I cleared the information here for privacy)
[12/07/2013 1:40 PM] – SUCCESS :Connection to http://www.paypal.com successfuly completed.
[12/07/2013 1:40 PM] – FAILURE :IPN validation failed.
[12/07/2013 1:40 PM] – SUCCESS :Paypal class finished.
I have not changed anything else except updating WP affiliate.
Thanks for your help,
Francois
December 7, 2013 at 3:58 pm #59507FJourjonSpectatorI also just noticed since the update, that it is causing troubles to the rest of my payment setup. I am using DAP and when WP affiliate is activated, I receive the notification of payment from dap, but the user is not added, and the 3rd party email notifications are not sent.
When I desactivate WP affiliates, it works fine. This is what I get in my debug file :
[12/07/2013 3:26 PM] – SUCCESS :Paypal Class Initiated by 213.186.33.17
[12/07/2013 3:26 PM] – SUCCESS :Post string : (removed for privacy)
[12/07/2013 3:26 PM] – SUCCESS :Connection to http://www.paypal.com successfuly completed.
[12/07/2013 3:26 PM] – SUCCESS :IPN successfully verified.
[12/07/2013 3:26 PM] – SUCCESS :Creating product Information to send.
[12/07/2013 3:26 PM] – SUCCESS :Transaction Type: Buy Now/Subscribe
[12/07/2013 3:26 PM] – SUCCESS :Updating Affiliate Database Table with Sales Data if Using the WP Affiliate Platform Plugin.
[12/07/2013 3:26 PM] – SUCCESS :Paypal class finished.
But obviously the affiliate databse table is not updated as the plugin is desactivated.
It seems to be only this version as the previous one (I had) was working for me (besides the affiliate ID).
Note : I am using IPN redirect so that an IPN is sent to DAP and the other one to WP affiliate.
Thanks
Francois
December 8, 2013 at 10:41 pm #59508adminKeymasterHi Francois, There doesn’t seem to be any referral data with the payment. Please take a look at the following post and provide some more details that are listed there. It will help me do some checks:
https://support.tipsandtricks-hq.com/forums/topic/clicks-are-tracked-but-not-the-sales
December 9, 2013 at 12:13 pm #59509FJourjonSpectatorHello,
There was some details after “Post string” but I removed them. Here it is :
[12/07/2013 1:40 PM] – SUCCESS :Paypal Class Initiated by 213.186.33.17
[12/07/2013 1:40 PM] – SUCCESS :Post string : [redacted]
[12/07/2013 1:40 PM] – SUCCESS :Connection to http://www.paypal.com successfuly completed.
[12/07/2013 1:40 PM] – FAILURE :IPN validation failed.
[12/07/2013 1:40 PM] – SUCCESS :Paypal class finished.
And for the additionnal info :
1 – [http://www.ne-perdez-plus-le-nord.com/formation-ne-perdez-plus-le-nord-2/] (last button on the page)
2 – I am using a Paypal hosted button. It sends an ipn to an address which redirects to DAP and WP affiliate
3 – I am using Option 2 : http://www.tipsandtricks-hq.com/wordpress-affiliate/plain-paypal-button-and-affiliate-plugin-integration-168
4 – Debug is activated
5 – I am using the last version : 5.7.4
Thanks,
Francois
December 9, 2013 at 11:15 pm #59510adminKeymasterIssue number 1: you are missing the following line of code in your PayPal button:
<input name="custom" type="hidden" value="[wp_aff_custom_args]" />
Read the documentation you linked again (check the example button codes for better understanding).
Issue number 2: is the IPN directly hitting the affiliate plugin? I don’t see the IPN URL in the button either. That could explain why the validation is failing because it has to be an authentic IPN notification for that validation to pass.
December 10, 2013 at 8:55 am #59511FJourjonSpectatorHello,
1 – This line of code is in the button : <input name=”custom” type=”hidden” value=”[wp_aff_custom_args]” />
As mentionned it is on the last button of the page, and I checked in the page code, it is there.
2 – The IPN is hitting a URL which redirects to the plugin URL and DAP (using the plugin IPN redirect). It was working before with a previous version.
Thanks,
Francois
December 10, 2013 at 10:13 pm #59512adminKeymasterPayPal did some changes in their IPN verification process few months ago so we had to update the plugin accordingly. Just for a test can you please add the IPN code in that button just for this plugin and do a test? I want to eliminate the possibility that the IPN splitting is causing the validation issue/error.
December 10, 2013 at 11:46 pm #59513FJourjonSpectatorWith only IPN for the plugin, it works fine.
[12/10/2013 11:43 PM] – SUCCESS :Paypal Class Initiated by 173.0.81.1
[12/10/2013 11:43 PM] – SUCCESS :Post string : [redacted]
[12/10/2013 11:43 PM] – SUCCESS :Connection to http://www.paypal.com successfuly completed.
[12/10/2013 11:43 PM] – SUCCESS :IPN successfully verified.
[12/10/2013 11:43 PM] – SUCCESS :Creating product Information to send.
[12/10/2013 11:43 PM] – SUCCESS :Transaction Type: Buy Now/Subscribe
[12/10/2013 11:43 PM] – SUCCESS :Updating Affiliate Database Table with Sales Data if Using the WP Affiliate Platform Plugin.
[12/10/2013 11:43 PM] – SUCCESS :WP Affiliate Platform is installed, registering sale…
[12/10/2013 11:43 PM] – SUCCESS :Custom field value: ap_id=fjtest&ip=82.239.104.44
[12/10/2013 11:43 PM] – SUCCESS :Gross sale amount: 0.36 Tax: 0.06 Shipping: 0.00
[12/10/2013 11:43 PM] – SUCCESS :Aff Details=> Referrer: fjtest Sale Amt: 0.3 Buyer Email: news@randonner-malin.com Txn ID: 9DA28963V50217310
[12/10/2013 11:43 PM] – SUCCESS :Paypal class finished.
December 11, 2013 at 9:37 pm #59514adminKeymasterOkay that explains it. For some reason PayPal is not liking it when that other software is splitting the IPN.
We actually have hooks and API to integrate the affiliate plugin with another e-commerce or membership plugin. So why don’t you request the DAP developer to add an integration for it? Show them the following documentation and they might add an integration:
or
http://www.tipsandtricks-hq.com/wordpress-affiliate/awarding-commission-via-http-get-or-post-189
December 11, 2013 at 10:30 pm #59515FJourjonSpectatorThanks, I will look into that. But can it work if I have a product with 3 different possible payments: one time, recurring over 6 months and recurring over 12 months ?
But why was it working with the previous version of the plugin if it is a problem with Paypal ?
Isn’t there a way to get the old versions ?
December 12, 2013 at 2:13 am #59516adminKeymasterIts not a problem with PayPal. We updated our plugin when PayPal made changes to their IPN API so we made changes to the validation code according to the best possible way it can be done at the time of the change. We will make sure that the change doesn’t affect any of our supported features. There is no way we can accommodate non-supported integration when we make changes. You understand that what you are doing is not a supported feature of our plugin right?
December 12, 2013 at 2:00 pm #59517FJourjonSpectatorThanks, I was trying to understand why it is not working whereas it was before. I am going to try to find a way to make it work.
-
AuthorPosts
- You must be logged in to reply to this topic.