News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Paid Subscriptions

Started by Grudge, August 12, 2006, 06:09:49 AM

Previous topic - Next topic

JayBachatero

The problem is with the expiration date.  That is what is messing everything else up.  I looked into it but didn't get to far.  I've been busy the past few days.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Jim R

It's a weird problem.  PayPal is certainly recognizing it and transacting money.  I have 6 test subscriptions running on the same user name (a penny a day).  (I'm robbing Peter to pay Paul.)

In User's profile it shows the subscription as Finished.  The same as I look at User's account from the Admin panel.  It just doesn't add the user to the applicable Membergroup.

It has to be what is being written with the IPN, but in what direction, SMF to PayPal or back to SMF?  Unless there were changes to the IPN program, the direction would "seem" obvious.  "Seem"...as in, I really haven't clue, just relaying what I'm seeing on my end tonight.   :)

ms_ukyankee

I shouldn't put my two cents in because I haven't installed or looked at this yet, I'm just following the topic because I'm keen to use this mod when it's stable again, but I appreciate that mod authors give of their free time to work on these free mods for a free forum that some of us are getting paid for managing for clients..... thanks guys. :)

But it doesn't have to be what's written in the IPN, i'd be surprised if it was. My bet would be the mod just not picking up a correct date/time or calculating the subscription time properly.
SMF since 2004 <3

Jim R

My point with the IPN is, if I'm not mistaken, that is what is directing the bounce back from PayPal.  What we see in the Admin panel is via the IPN.  It certainly comes from the mod originally, but payment information is going through just fine.  I've had daily recurring payments for over a week with this version.  It just doesn't complete the process after payment has been issued.

MoreBloodWine

Well maybe when grudge gets a chance he can fix it... which im hopin he can.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


steve in houston

i tested out the auto-payment (daily for .10 cents)

i have deleted the subscription, disabled it, and i am still getting confirmation emails from paypal every morning saying a subscription payment has gone through.

how do i stop it?

Jim R

Through your PayPal account.

steve in houston

Quote from: Jim R on November 01, 2006, 01:36:20 PM
Through your PayPal account.

ive gone through there and it says i dont have any subscriptions set up.

do you know what paypal page might show it?

Jim R

I'm using PayPal, so I went back to the version I had working on 1.1 rc2, which was .09, and it's working just fine.  I'm not sure what the differences are between version .09 and .14, but .09 is getting it done.

I get the same error email sent to my Admin account, but my User account sees everything just fine.  It all shows up as it should in the Admin panel, and it added my User test account to the appropriate membergroup.

Jim R

Just testing version .11, it doesn't join the User to the appropriate Membergroup.  That obviously continues through to version .14.  Version .9 worked fine except for the odd error email that never caused it to not work in the past. 

For the record, I had .9 in for awhile before upgrading SMF to rc3.  It worked for over a week before I changed everything.

Jim R

#190
Final thoughts before bed tonight. 

.9 is working but I'm getting a boat load of emails to my Admin account.  In going between versions .9 and .11 I was working on clean installs.  One thing I didn't do was download the ipn.php file after installing it.  I made a change to a version I had on my local drive, which was from .14.  I uploaded it, and suddenly .9 wasn't working.

I think this is an ipn.php issue, but it could be a managePaid.php issue.

(Of course somewhere along the way, I managed to delete a couple of the menu items in my Membergroup menu.  Not sure how that happened, but I fixed it.   :) )

Any idea, relative to version .9, how to limit those emails?  Luckily, my User test account just gets the one email saying he subscribed.  I get two sets of 3 emails saying different things.

JayBachatero

Ok this seems to have fixed it for me.  I'm still testing it out though.  In subs/ipn.php
Code (find) Select

if (!empty($modSettings['paypal_email']) && (isset($_POST['txn_type']) || isset($_POST['payment_status'])) && ((isset($_POST['business']) && $modSettings['paypal_email'] == $_POST['business']) || (isset($_POST['receiver_email'])) && $modSettings['paypal_email'] == $_POST['receiver_email'])))


Code (replace) Select

if ((isset($_POST['txn_type']) || isset($_POST['payment_status'])) && isset($_POST['business']) && !empty($modSettings['paypal_email']) && $modSettings['paypal_email'] == $_POST['business'])
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Jim R

Jay,

I assume that fix is addressing version .14.  Right?


JayBachatero

Hold that thought.  Seems like it's not fixed yet.  I tracked it down to where the problem is though.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

MoreBloodWine

Quote from: JayBachatero on November 02, 2006, 09:44:42 PM
Hold that thought.  Seems like it's not fixed yet.  I tracked it down to where the problem is though.
**Has hopeful thoughts...**
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


JayBachatero

I'm going nuts over this one. Can't seem to get it working.  I'll keep on looking into it.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

JayBachatero

Ok the problem seems to be related to flexible payments and a small problem on ipn.php.  Let me see if I get it working.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Jim R

What was wrong with version .9?  The changes from .9 to .10 are when this went wrong.

JayBachatero

Well email notification is not working correctly.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Jim R

Quote from: JayBachatero on November 04, 2006, 01:39:16 AM
Well email notification is not working correctly.

I realize that.  I've gone back to version .9.  The correlating issue deals with the changes made from .9 to .10.  Since then it doesn't apply membergroups to subscribers.  Does Grudge have a log of his changes for you to look at?


Advertisement: