patch offered to allow (optional) "anonymous" subscriptions

dawhead - March 12, 2009 - 15:54
Project:lm_paypal
Version:6.x-1.x-dev
Component:LM Paypal Subscriptions
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

We've been using lm_paypal at http://ardour.org/ for a number of years now, and are in the process of moving the site to Drupal 6.x. As a result, I've had to reapply the work I did to the original 4.X lm_paypal to allow what we call "anonymous subscriptions". Of course, these are not really anonymous - the term just means that a person is not required to become a site member in order to sign up for a subscription. We still get an email address etc. from the paypal IPN. I've attached the current patch - note that this has not yet been fully tested, but I wanted to float the idea to see if it was likely that it might be incorporated into the official module. There is a single define near the top of the single patched file which defines the anonymous UID - if this is set to -1, then there can be no anonymous subs. In my patch, its set to zero, meaning that anyone on the website but not signed in can sign up if they choose to do so.

I welcome comments on this patch. I am not familiar enough with drupal at this time to push the option to allow this into the lm_paypal admin section.

#1

dawhead - March 12, 2009 - 15:55
AttachmentSize
anon_uid.patch 5.13 KB

#2

lyricnz - March 16, 2009 - 09:04

Thanks for this - I'll review it when I get a chance, but I'm pretty snowed under at work right now!

#3

shiba - March 16, 2009 - 13:45

I need Anonymous user Paypal subscriptions so that they can Subscribe paypal without login.I used this patch in drupal6.9 with im paypal version lm_paypal-6.x-1.0.It is working but not my specification.

#4

dawhead - March 16, 2009 - 15:04

What is your specification?

#5

sprocketjared - March 16, 2009 - 20:30

I also wanted to allow subscriptions for anonymous users. Basically, what I wanted is to allow for registration at the time of subscription. So an anonymous user, by subscribing (using lm_paypal) would be registering with the site and given the role assigned by lm_paypal. Is that what your patch does?

#6

MartinPaulo - August 12, 2009 - 06:51
Version:6.x-1.0» 6.x-1.x-dev

I am adding a vote for anonymous users to be allowed to take out subscriptions. It is something that we need - and having just read the 6.x-2.0-apha1 code, does not seem to be something that has been added yet?

#7

vitis - August 14, 2009 - 22:02

Allowing anonymous visitors to subscribe (pay), then immediately get a role and create content is exactly what I need.

Vitis

 
 

Drupal is a registered trademark of Dries Buytaert.