Page 1 of 1

debugging s2member pro payment notification urls

PostPosted: December 16th, 2010, 3:22 pm
by dackert
I'm working on integrating s2member with WP Affilliate. I've followed the instructions here http://www.tipsandtricks-hq.com/wordpre ... ftware-368 and verified that calling the notification url directly DOES talk to WP Affiliate.

However, when I do a test purchase, WP Affiliate does not track the sale. Does s2member not fire those URLs when it's in sandbox mode?

How can I debug s2member to determine if it's attempting to fire the payment notification url?

Specs:
My site is in paypal sandbox mode.
s2member: 3.3.2
s2member pro: 1.3.2
WP Affiliate: 4.2.1

Re: debugging s2member pro payment notification urls

PostPosted: December 20th, 2010, 12:42 pm
by dackert
Any feedback on this? I have to go live in a couple weeks and this one issue will kill the project. Help!

Re: debugging s2member pro payment notification urls

PostPosted: December 23rd, 2010, 10:21 am
by dackert
In case anyone else runs into this, I discovered the answer.

When I create an s2member pro form with zero days free, paypal actually processes the charge on the day after I sign up. When it finally processes the payment, it notifies s2member which then processes its payment notification urls.

In my case, the steps to integrate with WP Affiliate were correct. I was just expecting an instant notification from paypal when my form was set to zero days free. But apparently, paypal doesn't do that with recurring subscriptions.

Jason, dev team, is that accurate?

Re: debugging s2member pro payment notification urls

PostPosted: January 30th, 2011, 10:32 pm
by wiseeyesmedia
I, too, noticed that with S2Member Pro, PayPal subscription forms with zero free days do not actually process subscription orders that day. In the wp-content/plugins/s2member-logs/paypal-pro-api.log file you will see the transaction process with an 'initial_payment_amount' of $0.00 and the 'next_payment_date' set to the following day.

I think this is a big problem with S2Member Pro. We need to be able to have PayPal Pro subscriptions with immediate billing.

Re: debugging s2member pro payment notification urls

PostPosted: January 30th, 2011, 11:31 pm
by wiseeyesmedia
Doing some additional research from the PayPal API shows that this is a generic issue with subscriptions that are initiated late in the day:

https://www.x.com/thread/42204

The solution seems to be charging an initial payment with the same amount as the recurring payment and setting the next PROFILESTARTDATE to be + 1 month. S2Member Pro does not allow an initial payment to be the same as the recurring one. Even making the charge 1 cent less with an initial Payment will not register the same day.

The only way I have found to make this work is to manually go into PayPal and modify the subscription payment so that it take effect on the current date. This will result in an immediate charge to the user, and S2Member Pro will pick up the changes and allow the user to access the content.

IMHO, this is a significant problem for us S2Member Pro users. Can the devs take a look at this? I would be happy to help test.