Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Reoccurring Paypal Subscriptions Details »»
Reoccurring Paypal Subscriptions
Version: 1.00, by insanctus insanctus is offline
Developer Last Online: May 2006 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 05-06-2004 Last Update: 03-22-2005 Installs: 109
 
No support by the author.

What this does (added in first post)

With the current vbulletin subscription set up, it only charges your members one time. So if you have a pay based site, or forum area they have to keep subscribing, and causing them to waste time and effort (and maybe you lose money)

What this does, is give you the option if you want one time payment (standard vb) or reoccurring payment.

When you choose reoccurring the script has them sign up for a reoccurring payment, as paypal sends you confirmation each time you get a subscription payment, your system will now update their access time.

This will save your members from having to resign up all the time and hopefully save you some money


For instance, say you have a paying member?s only area, and you want them to have to pay $10 a month.

With this you can charge per month and it handles all the charges, and every month they send another payment automatically your script gets updated and sets their new expiration.


This has been asked for many times and IMO should have been in to begin with.

Enjoy and I will help as I can.

Note from the new supporter: This hack is now being actively supported again. I have updated the install instructions to work for version 3.0.7, and we can now begin to work out any existing bugs. This code is still raw and has not been tested extensively due to the difficult nature of testing paypal transactions.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 06-06-2005, 10:13 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #203  
Old 06-06-2005, 10:17 AM
nexialys
Guest
 
Posts: n/a
Default

"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.
Reply With Quote
  #204  
Old 06-07-2005, 06:00 AM
kmike kmike is offline
 
Join Date: Oct 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #205  
Old 06-07-2005, 07:16 AM
mfarmerhi mfarmerhi is offline
 
Join Date: Apr 2003
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #206  
Old 06-07-2005, 10:11 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #207  
Old 06-07-2005, 12:23 PM
kmike kmike is offline
 
Join Date: Oct 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #208  
Old 06-07-2005, 04:18 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #209  
Old 06-09-2005, 05:34 PM
concreteweb concreteweb is offline
 
Join Date: Apr 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #210  
Old 06-09-2005, 05:57 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #211  
Old 06-09-2005, 08:26 PM
concreteweb concreteweb is offline
 
Join Date: Apr 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05211 seconds
  • Memory Usage 2,322KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete