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?


All times are GMT. The time now is 10:09 AM.

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.01302 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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