I'm using Drupal 4.7.6.
I streamlined the lm_paypal subscription page a little. The site I'm working on has two different subscription options, so I created a page that has both subscription buttons on the same page, along with the buttons that link directly to PayPal. To do this, I copy/pasted the forms from the actual lm_paypal subscription pages and added some PHP code to drop the uid into the hidden "custom" field. I also added the link to the lm_paypal.js file to the page.
After some trial and error, it seems to be working great. People subscribe through my page, PayPal processes it, and they are added to the "subscriber" role. Wonderful.
The problem I'm having is that lm_paypal is sending multiple copies of the subscr_signup email. Like, a dozen so far for each person who subscribed in the past 24 hours. They aren't being charged multiple times, but the ipns page shows that there is a corresponding db entry for every additional subscr_signup that is going out.
A couple of questions... 1) did I miss something when setting up the page (apparently), and 2) how do I get it to stop sending multiple emails/creating multiple db entries?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | subscr_signup2.patch | 2.13 KB | LeeMcL |
| #1 | subscr_signup.patch | 2.25 KB | LeeMcL |
Comments
Comment #1
LeeMcL commentedI don't think it is something that you've done wrong as I've had a couple of other similar reports. It appears to be caused by multiple signups being sent from PayPal itself. Can you try out the attached patch which should hopefully fix it or at least will help me debug the problem.
If this does fix the problem I'll issue a proper patch (without the debugging).
Lee
Comment #2
LeeMcL commentedApologies I've noticed a flaw in that patch. Please don't use it. Instead apply the attached replacement patch to a clean copy of lm_paypal_subscriptions.module
Lee
Comment #3
nirkman commentedI am using Drupal 5.1 and I am seeing the same issue. The subscription module works fine, but it sends out 5 welcome letters (subscr_signup) when someone signs up. When they cancel, they only receive one cancellation letter.
Has this patch been verified to work and will it work on version 5.1 ?
Comment #4
nirkman commentedI installed the patch on Drupal 5.1, and so far it seems to be working. Thank you.
Comment #5
ddyrr commentedThis may be useful:
https://ppmts.custhelp.com/cgi-bin/ppdts.cfg/php/enduser/std_adp.php?p_f...