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

Sarke

I'm not sure if this has been covered, but it might be something that the mod doesn't take into consideration.

What if there are two different subscriptions that both put the member in the same group?  When one expires, does it correctly keep the member in the groups from the second subscription even though the first one is over?

My MODs          Please don't PM me for support, post in the appropriate topic.

3mrhythm

alrighty.. i added that line before the other line like it says and i am still not getting the paypal communication with the forum..
www.nhfragswap.com
www.yariscentral.com

wk38

Appears support that has somewhat disappeared for this mod. Too bad, I really like it.

perplexed

I was just considering this for the first time and came to see if there was info on getting it to work with 1.1.2?

wk38

I don't think there any info on getting it to work period.

perplexed

so what are they using on here?  If I look in my profile there is a link to paid subscriptions, what is that I wonder?  I also have seen similar on other smf sites and I want one lol

Stumpy

The mod "works" in the sense that (at least for me) it does indeed redirect to Paypal, let the user make the donation, and informs the calling website of the transaction.  The trouble I'm having is with the expiration date - I guess that the folks here and on other sites have figured out how to get around that.

wk38

Same problem with the dates by my users never get out of pending status. I finally just pulled the mod out. I can't use something that has no support.

Stumpy

I'll keep hacking away at it - I need the mod and I can run it manually for a while.  If I figure it out, I'll let you know.

wk38

Cool, thanks. I sure would like to use it but my PHP skills are not up to the task.

3mrhythm

i wish i knew more about it :(

i cant get the communication from paypal to the forum when the payment is made ... i made the changes suggested on this thread  too...

also when a subscription is up..i cant delete the user from the list... any suggestions on that one?
www.nhfragswap.com
www.yariscentral.com

Stumpy

Possible fix (at least for me) on the expiration date issue.  Note that I have not tried this yet, but if someone knows more about php than me and can tell me if I'm on the right track, I'd appreciate it.

In about line 800 of ManagePaid.php, Grudge sets $duration (for a year) as 31556926, which appears to be pretty close to the number of seconds in a year.

In line 920 for a simple subscription addition, he's got "$endTime = time() + $duration;"

At least in my very simple testing, which involved printing the current time and then attempting to add seconds to it, I kept getting errors when I tried to print "time() + $duration;" 

After playing around a bit, I was able to get it to do it by setting $endTime = time(), then setting $duration = 31556926, and finally setting $endTime += $duration. 

Since the time equivalent of 31556926 is somewhere around January 1, 1971, it appears that that's the number that was getting entered AS the endTime, rather than incrementing the endTime.

Again, I'm a complete NOOB at PHP and Grudge appears to be a monster, so this might be totally wrong or it might have something to do with the version of PHP one is using....and I'm so new at this that I don't even know how to tell you what version I'm on.

perplexed

there are thousands of companies that offer subscriptions - magazine subscriptions etc - so how do they do it?  I used to work for a subscription company, maybe I should ask them :)

Grudge

I've updated my mod today so it will *hopefully* fix the subscriptions problem (i.e. renewable ones were not renewing)

However - I can't replicate the date problem - it works fine on this site where I have it installed. Could someone set out in very simple instructions how to replicate the date (After trying to updated version).
I'm only a half geek really...


Latrobe

I'm getting an invalid error from paypal.

wm

#396
We have a "lifetime" membership category.  Does anyone know how I would extend the expiration date past the value 2010 currently in the pull down list?

edit:
Nevermind - I figured it out.  The years come from the calendar limits ('cal_minyear' and 'cal_maxyear' in $mod_settings)

Grudge

Does paypal itself generate that error or SMF when saying through paypal? What does it say if the latter
I'm only a half geek really...

DrkSnpr14

#398
Quote from: JayBachatero on December 06, 2006, 08:55:43 PM
Ok is anyone else having problems with this mod besides madfiddler?
Yup, I am. Running SMF version 1.1.1. The payments went through on both ends, but the test subject was put in payment pending, with an end date of Jan 1, 2004. I can manually fix it, but it's a pain in the ass if I have to do it for everyone

EDIT - After checking my email, I got an error notification as well - Unknown transaction type in ipn.php
[nofollow]

Latrobe

the error was from paypal itself.

Advertisement: