vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Reoccurring Paypal Subscriptions (https://vborg.vbsupport.ru/showthread.php?t=64834)

amykhar 06-06-2005 10:13 AM

Quote:

Originally Posted by kmike
I noticed the notification url form field is missing from this hack:
PHP Code:

<input type=\"hidden\" name=\"notify_url\" value=\"$vboptions[bburl]/subscriptions/paypal.php\" /> 

Is it deliberate? It causes vB to not perform any action after payment has been made, if there were some actions set (such as usergroup change and forum permissions updates).

The return doesn't do what you think it does. To make the actions happen, you have to set up your ipn url at paypal, as per the instructions in the subscriptions system.

nexialys 06-06-2005 10:17 AM

"notify_url" is for the paypal verification script to send a notice to vbulletin and say if the payment is done or refused...

"return" is the one to send you back to page X... if you want to modify that url so users are taken back to a thanks page of some sort, you can do that with THAT input.

kmike 06-07-2005 06:00 AM

IPN setup isn't available for all types of PayPal accounts.
Specifying notify_url at the form submission time is a more compatible way for notifications to work, and in fact vB itself does submit it, so I see no valid reasons of the field removal in this hack.

mfarmerhi 06-07-2005 07:16 AM

Quote:

Originally Posted by kmike
IPN setup isn't available for all types of PayPal accounts.
Specifying notify_url at the form submission time is a more compatible way for notifications to work, and in fact vB itself does submit it, so I see no valid reasons of the field removal in this hack.

A question regarding trial periods: It appears that this hack uses straight forward PayPal code (the same that would be provided by PayPal if one were to enter the prices and product info through their code generator).

Is there any reason why you can't simply generate the code from PayPal, including trial periods, and paste it in the appropriate places in this hack?

Seems to me this hack would easily allow for trial periods (e.g. 1 week for $5, then $10/mo there after).

amykhar 06-07-2005 10:11 AM

Quote:

Originally Posted by kmike
IPN setup isn't available for all types of PayPal accounts.
Specifying notify_url at the form submission time is a more compatible way for notifications to work, and in fact vB itself does submit it, so I see no valid reasons of the field removal in this hack.

Have you tried using the subscription service without this hack and without ipn? I don't believe it works for you because the subscription code is looking for specific variables passed back by the IPN.

kmike 06-07-2005 12:23 PM

Yes, subscriptions worked nicely before this hack installation.

This is taken from one of the numerous manuals on PayPal integration:
Quote:

Alternatively, you can activate IPN by including the notify_url field in your PayPal
button. This field specifies the URL of a script that can process the IPN.
This is from Business::PayPal::IPN perl package man page:
Quote:

PAYPAL IPN OVERVIEW

As soon as you receive payment to your PayPal account, PayPal posts the transaction details to your specified URL, which you either configure in your PayPal preferences, or in your HTML forms' "notify_url" hidden field.

amykhar 06-07-2005 04:18 PM

To replace the notify url line, simply go to includes/functions_subscriptions.php and find (2 time)
Code:

<input type=\"hidden\" name=\"return\" value=\"$vboptions[bburl]\" />
Add After:
Code:

<input type=\"hidden\" name=\"notify_url\" value=\"$vboptions[bburl]/subscriptions/paypal.php\" />
BUT. I'm NOT going to guarantee that when subscriptions are renewed that they will be processed correctly if you use the notify url in there rather than the IPN. Unless you are not using IPN, I would leave the hack installed as before, which we knew worked.

It may work fine with the notify url, but if it ain't broke for you, I don't suggest that you "fix" it by adding in the notify url.

Amy

concreteweb 06-09-2005 05:34 PM

Quote:

Originally Posted by amykhar
Have you tried using the subscription service without this hack and without ipn? I don't believe it works for you because the subscription code is looking for specific variables passed back by the IPN.

Hi Amy,

Same thing happened for us. Successfully using the subscription service for about a year. Did your mod last week - the subscription works up to a point - it connects with PayPal, sends us an email and the customer an email - but now it does not update the account on our forum.

I've tried out the code above - doesn't make a difference. We are running the 3.0.3 (patched for the security bugs.)

This is the first time I've had a problem with a mod. :ermm:

amykhar 06-09-2005 05:57 PM

As I said, I can't guarantee that it will. The reoccurring subscriptions are sending back specific ipn variables that I just don't believe would be sent the other way. I haven't had a chance to look at vbulletin 3.5 yet to see what it offers in subscriptions. It may be a moot point if it handles recurring subscriptions out of the box.

Amy

concreteweb 06-09-2005 08:26 PM

Quote:

Originally Posted by amykhar
The hack, as it is, installs fine. And, it sets up the recurring subscriptions fine. What isn't working right is something that isn't working right with subscriptions in general - even without the hack installed. Some times, payments don't process and subscriptions aren't added or updated.

We've had some time to test all of our subscriptions.

Here's an update from my earlier message today.

1. All of our regular non-recurring subscriptions work fine - everyone gets their account updated a.o.k.

2. None of the recurring subscriptions get their accounts updated.

It sure looks like this is an issue with the mod since standard subs work like a charm.

Comments anyone?

amykhar 06-09-2005 09:08 PM

Quote:

Originally Posted by concreteweb
We've had some time to test all of our subscriptions.

Here's an update from my earlier message today.

1. All of our regular non-recurring subscriptions work fine - everyone gets their account updated a.o.k.

2. None of the recurring subscriptions get their accounts updated.

It sure looks like this is an issue with the mod since standard subs work like a charm.

Comments anyone?

Are you using IPN or are you using the notify url? I don't think this hack works if you haven't set up IPN.
Have you followed all of the hack's directions? You may have missed the file changes to paypal.php. If you did, it won't recognize the new IPN variables.
I am not using 3.0.3 and can't test on that platform.

concreteweb 06-10-2005 02:52 AM

Quote:

Originally Posted by amykhar
Are you using IPN or are you using the notify url? I don't think this hack works if you haven't set up IPN.
Have you followed all of the hack's directions? You may have missed the file changes to paypal.php. If you did, it won't recognize the new IPN variables.
I am not using 3.0.3 and can't test on that platform.

Yes, we are using IPN. Checked and double-checked the install files - including paypal.php.

Strange indeed. This underscores the weakness of the current vbulletin software with all the variations between the different versions.

I hope 3.5 will get us to some kind of mod stability.

fashunphotog 06-21-2005 01:19 PM

Hey! I'm interested in this hack but I'd like to know first if it will allow me to set up a free period of say 90days and then begin charging the appropriate fee from that point on?

If not, anyone know of any hacks that will allow that?

Thanks for whatever info you can supply,

FaShUnPhOtOg

amykhar 06-21-2005 01:45 PM

No. It doesn't have the free period, fashun. I don't know if there is a hack that does.

Amy

fashunphotog 06-21-2005 04:04 PM

I noticed after I posted my reply/question that insanctus, in a later post, indicated s/he (gender unknown to me, sorry), had actually coded that option but had not decided how it should look so had not released it yet.

I'm wondering now if s/he has since released it and I haven't found it yet? If not, would Insanctus please release what s/he has and let us worry about how it looks to our end users? Perhaps one of us can make suggestions after we see it in action?

FaShUnPhOtOg

amykhar 06-21-2005 04:26 PM

Insanctus no longer posts here. And he's a he. ;)

Amy

fashunphotog 06-21-2005 04:42 PM

well, hmph! we need this option rather quickly.... I was hoping he (thank you for that ;) would be willing to supply it. Would it be a difficult hack do you think? Do you know anyone willing to code it? (Hint, hint, "wink, wink, nudge, nudge, know what ah mean, guvnor?")

FaShUnPhOtOg
aka Michael

Anarchy 07-02-2005 10:12 AM

Quote:

Originally Posted by amykhar
Romeos, as I said before, that could be the problem with the stock vbulletin subscriptions. I have had problems with those ever since vbulletin 3 was in beta.

Make sure the paypal recurring subscription was set up and make sure you made the changes to the paypal.php file. If you did the paypal.php changes, you are probably seeing the same problem many of us see with subscriptions in general.

This script works perfect on 3.0.6 so its a change from .6 to .7

Im using it for hundreds of subs on a .6 board and it won't work on my .7 boards

amykhar 07-02-2005 12:30 PM

I am using .7 and it works just fine for me.

bchertov 07-08-2005 11:24 PM

Hi,

I am considering installing this hack for my 3.0.6 board.

Do the same install insructions apply to 3.0.6?

ALSO, is there a provision for the price to change on the recurring charge - say the price goes up after an introductory special?

Thanks!
Barry

amykhar 07-09-2005 01:17 AM

Quote:

Originally Posted by bchertov
Hi,

I am considering installing this hack for my 3.0.6 board.

Do the same install insructions apply to 3.0.6?

ALSO, is there a provision for the price to change on the recurring charge - say the price goes up after an introductory special?

Thanks!
Barry

Yes, it should work on 3.0.6

No. There is nothing to regulate price changes. You would have to go to paypal and unsubscribe your users and have them resubscribe.

sub_ubi 07-12-2005 02:45 AM

Anyone up for porting a bunch of old "reocurring" subscriptions to 3.5? The new payment system is much better, so having both work at the same time would be wonderful. Old people keep their subscriptions, new people sign up with the new system.

Anarchy 07-19-2005 09:56 PM

I'm having trouble now with both my forums and they were working fine. Did paypal change the way it sends back its info?

Its making the subscription, but not adding the subscription to the subscriptions in vbulletin.

amykhar 07-19-2005 11:06 PM

I've upgraded to 3.5 and am no longer running this mod. So, I'm honestly not sure if anything has changed on the paypal side.

Is anybody else having problems?

sunnycher 07-20-2005 12:14 AM

This thread is very confusing.
I am running VB 3.07 and VBA 1.0
so the paypal subscriptions I have set up (without this hack) are not going to automatically renew? BUT they will get a notice that their subscription is getting ready to expire though, right? And they have the option of renewing.

BUT, with this hack, it will automatically do it for them? Mine are annually.
also, when it automatically renews it, does it do it at the CURRENT rate or the rate they paid a year ago?

Thanks for helping me understand!

Q-v-n-s-Q 08-02-2005 06:09 AM

Quote:

Originally Posted by Anarchy
I'm having trouble now with both my forums and they were working fine. Did paypal change the way it sends back its info?

Its making the subscription, but not adding the subscription to the subscriptions in vbulletin.

i have the same problem too, when i install this hack work perfect , but i have to add new members subscription manually.

* wondering is there anyway to fix it?? im running vb 3.0.7 ** thanks

kmike 08-02-2005 07:27 AM

I, too, had to uninstall this hack because of missing PayPal callbacks. Not sure if it ever worked for us.

sunnycher 08-08-2005 03:58 PM

any answers on this?

Quote:

Originally Posted by sunnycher
This thread is very confusing.
I am running VB 3.07 and VBA 1.0
so the paypal subscriptions I have set up (without this hack) are not going to automatically renew? BUT they will get a notice that their subscription is getting ready to expire though, right? And they have the option of renewing.

BUT, with this hack, it will automatically do it for them? Mine are annually.
also, when it automatically renews it, does it do it at the CURRENT rate or the rate they paid a year ago?

Thanks for helping me understand!


Apophis 08-22-2005 02:29 PM

Quote:

Originally Posted by sub_ubi
Anyone up for porting a bunch of old "reocurring" subscriptions to 3.5? The new payment system is much better, so having both work at the same time would be wonderful. Old people keep their subscriptions, new people sign up with the new system.

I started a thread in the 3.5 Modification Request Forums that addresses this very issue. I'm willing to pay a coder to pull this one off for me.

https://vborg.vbsupport.ru/showthread.php?t=94843

It will be near impossible for me to get all of my subscribed members to cancel and resubscribe through the new system so I would love a way to be able to upgrade to 3.5 while maintaining backwards compatibility with 3.0.7.

Apophis 09-30-2005 04:58 PM

Has anyone managed to work out a vBulletin 3.5.0 backwards compatible hack yet? My offer still stands, if anyone can develop this, I will certainly be willing to pay for your efforts!

ashley53680 10-26-2005 02:13 AM

I would love this for 3.5!

contemptx 01-06-2006 07:49 PM

anyone managed to get this working or is this hacknow dead and we dont have a recurring payment hack for 3.0.x?

it would be great to get this hack working as i find 3.5 hogs cpu usage.

mfarmerhi 03-05-2006 06:04 AM

Quote:

Originally Posted by contemptx
anyone managed to get this working or is this hacknow dead and we dont have a recurring payment hack for 3.0.x?

it would be great to get this hack working as i find 3.5 hogs cpu usage.

For 3.0.x versions, I believe there's an error in the instructions for Step #3 Open includes/functions_subscriptions.php

I believe it should read:

Code:

                case 'paypal':
                $form['action'] = 'https://www.paypal.com/cgi-bin/webscr';
                $form['method'] = 'post';
                /// Add In For Reacuring Payments
                $paypalextra = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "subscription AS subscription WHERE subscriptionid=$subscriptionid");
                if($paypalextra[reoccur]==0){// It is one time
                $form['hiddenfields'] = "
                        <input type=\"hidden\" name=\"cmd\" value=\"_xclick\" />
                        <input type=\"hidden\" name=\"business\" value=\"$vboptions[ppemail]\" />
                        <input type=\"hidden\" name=\"item_name\" value=\"$title Subscription\" />
                        <input type=\"hidden\" name=\"item_number\" value=\"$item\" />
                        <input type=\"hidden\" name=\"amount\" value=\"$cost\" />
                        <input type=\"hidden\" name=\"currency_code\" value=\"$currency\" />
                        <input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
                        <input type=\"hidden\" name=\"shipping\" value=\"0.00\" />
                        <input type=\"hidden\" name=\"return\" value=\"$vboptions[bburl]/$vboptions[forumhome].php\" />
                        <input type=\"hidden\" name=\"notify_url\" value=\"$vboptions[bburl]/subscriptions/paypal.php\" />
                        <input type=\"hidden\" name=\"custom\" value=\"$userinfo[username]\" />
                        <input type=\"hidden\" name=\"no_note\" value=\"1\" />";

                }else{
                $form['hiddenfields'] = "
                        <input type=\"hidden\" name=\"cmd\" value=\"_xclick-subscriptions\" />
                        <input type=\"hidden\" name=\"business\" value=\"$vboptions[ppemail]\" />
                        <input type=\"hidden\" name=\"item_name\" value=\"$title Subscription\" />
                        <input type=\"hidden\" name=\"item_number\" value=\"$item\" />
                        <input type=\"hidden\" name=\"currency_code\" value=\"$currency\" />
                        <input type=\"hidden\" name=\"a3\" value=\"$cost\" />
                        <input type=\"hidden\" name=\"p3\" value=\"$paypalextra[length]\">
                        <input type=\"hidden\" name=\"t3\" value=\"$paypalextra[units]\">
                        <input type=\"hidden\" name=\"src\" value=\"1\">
                        <input type=\"hidden\" name=\"sra\" value=\"1\">
                        <input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
                        <input type=\"hidden\" name=\"return\" value=\"$vboptions[bburl]\" />
                        <input type=\"hidden\" name=\"notify_url\" value=\"$vboptions[bburl]/subscriptions/paypal.php\" />
                        <input type=\"hidden\" name=\"custom\" value=\"$userinfo[username]\" />
                        <input type=\"hidden\" name=\"no_note\" value=\"1\" />";
       
                }
                        break;

As it was written, non-reoccurring subscriptions were not being updated by vB for Paypal users not using IPN; and subscriber were charged shipping. Further, as it was written Emails to the Admin didn't include the subscriber's names.

The updated code was taken directly from vB's original coding and, for the life of me, I can't see why it would have been changed in the if/else statement. The if/else statement takes care of non-reoccurring/reoccurring, but the coding for non-reoccurring should remain the same in either the hacked version or the non-hacked version. (Hope that makes sense...)

~ Mark

mfarmerhi 03-08-2006 07:17 AM

I'd like to ensure that this thread is linked to this thread discussing what the heck to do if you decide later to raise prices: https://vborg.vbsupport.ru/showthread.php?t=73419

If you raise prices after installing the reoccurring hack, you'll have problems with everyone's subscription who subscribed BEFORE the price raise: because their auto subscription payments no longer match the new price, their subscriptions will fail, requiring them to re-subscribe.

In that linked thread I describe a down and dirty hack to prevent some of the problems.


All times are GMT. The time now is 12:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01524 seconds
  • Memory Usage 1,848KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete