Advertisement:

Author Topic: Subscriptions ....  (Read 21604 times)

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Subscriptions ....
« Reply #20 on: August 09, 2013, 05:09:45 PM »
Can you check your database in the smf_subscriptions table and see if there is just the subscription you have set up?
I have the feeling something wrong happened somewhere at some point...
And while you are at it, check that the field "length" is "365D".

Also:
http://i.imgur.com/aXMTSX0.png
You are sending an email with as text (or subject, not sure) an email address to your members when the subscription is successful. ;)


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline RFD

  • Jr. Member
  • **
  • Posts: 287
  • They're coming to take me away, hah hah ....
Re: Subscriptions ....
« Reply #21 on: August 09, 2013, 06:03:45 PM »
....  Also:
http://i.imgur.com/aXMTSX0.png
You are sending an email with as text (or subject, not sure) an email address to your members when the subscription is successful. ;)

hah!  how dumb of me ... all fixed.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Subscriptions ....
« Reply #22 on: August 12, 2013, 08:24:46 AM »
"all fixed" you mean the email or also the issue?


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline RFD

  • Jr. Member
  • **
  • Posts: 287
  • They're coming to take me away, hah hah ....
Re: Subscriptions ....
« Reply #23 on: August 12, 2013, 08:30:54 AM »
the email - the pp "recurring subscription" is still a bug.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Subscriptions ....
« Reply #24 on: August 12, 2013, 08:33:54 AM »
Considering it is working here (even too well since from time to time people ask to interrupt the subscription) it may or may not be a bug.

Can you ask the other question I posted?


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline RFD

  • Jr. Member
  • **
  • Posts: 287
  • They're coming to take me away, hah hah ....
Re: Subscriptions ....
« Reply #25 on: August 12, 2013, 08:54:04 AM »
if you mean this ...

"Can you check your database in the smf_subscriptions table and see if there is just the subscription you have set up?
I have the feeling something wrong happened somewhere at some point...
And while you are at it, check that the field "length" is "365D"."

i have no clue what yer talking about, sorry.


Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,243
Re: Subscriptions ....
« Reply #26 on: August 12, 2013, 02:47:26 PM »

Did you try changing subscription length to 1 year?


Offline RFD

  • Jr. Member
  • **
  • Posts: 287
  • They're coming to take me away, hah hah ....
Re: Subscriptions ....
« Reply #27 on: August 12, 2013, 02:52:38 PM »

Did you try changing subscription length to 1 year?

yes.  same problem. 

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,243
Re: Subscriptions ....
« Reply #28 on: August 12, 2013, 03:02:56 PM »
Leave the existing subscription and set up a new one with same settings and try that.  Ema is suggesting that something may be wrong with the existing settings in the database.  If that doesn't work, delete all subs and set up a new one.  That may clear a db glitch. 

You can access your db with phpmyadmin via your host control panel, and see what's actually in smf_subscriptions, which is what ema suggested. 

You can also edit Subscriptions-PayPal.php to echo the values it's posting to PP for $return_data['hidden']['a3'], $return_data['hidden']['p3'], and $return_data['hidden']['t3'].  One of them is not being accepted by PP.


Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Subscriptions ....
« Reply #29 on: August 12, 2013, 03:45:32 PM »
More than echo'ing it may be better to use log_error and have them in the error log. :P

If you need any help "on-site" let me know. ;)


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,243
Re: Subscriptions ....
« Reply #30 on: August 12, 2013, 11:04:35 PM »
More than echo'ing it may be better to use log_error and have them in the error log. :P

Don't think that will work, as the error is on the PayPal end.  Paid Subs doesn't usually log an error until it receives an IPN, and that's not happening here.  SMF thinks everything is fine when it posts the info, but  IPN is not sent because transaction fails at PP. 


Offline RFD

  • Jr. Member
  • **
  • Posts: 287
  • They're coming to take me away, hah hah ....
Re: Subscriptions ....
« Reply #31 on: August 13, 2013, 05:58:41 AM »
the subs works fine as long as i keep the 'recurring subs' switch off.  i installed smf per the smf install instructions.  i've done smf installs many many times in the past, all worked fine without a hitch.  as before, this latest version installation went perfectly, with no issues or errors.  i dunno what the deal is with the 'recurring subs', where the problem lies, but i just don't have much more time to spend on this.  it works as is (with the switch off) and that's all i need to get this thing rolling.  thanx for all yer help, folks.  much obliged.


Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,394
    • StoryBB/StoryBB on GitHub
Re: Subscriptions ....
« Reply #32 on: January 24, 2014, 12:49:01 PM »
Well, the original problem is actually that you'd misconfigured it. PayPal does not accept 365 days as a subscription length. As per https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/#id08A6HI00JQU

It's complaining about an invalid a3/p3/t3 and that's correct:

Quote
D – for days; allowable range for p3 is 1 to 90
W – for weeks; allowable range for p3 is 1 to 52
M – for months; allowable range for p3 is 1 to 24
Y – for years; allowable range for p3 is 1 to 5

So yeah, 365 days won't be valid. I'm thinking we should probably restrict these values in SMF because even though there's other payment processors, the same restrictions probably apply.


EDIT: Tracked as https://github.com/SimpleMachines/SMF2.1/issues/1274 so moving this to resolved so we can focus on what needs resolution.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.