#1676 - Users not being removed from the Paid Members group which PayPal fails to take the payment.
| Identifier | #1676 |
|---|---|
| Issue type | Major issue (breaks an entire feature) |
| Title | Users not being removed from the Paid Members group which PayPal fails to take the payment. |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | General / Uncategorised |
| Description | Hi,
On vwgolfmk1.org.uk we have a Paid Members group. A user arf333 has just had an email from PayPal "The Mk1 Golf Owners' Club has suspended your automatic payments. Contact The Mk1 Golf Owners' Club for more details or to reactivate your payments." This is after several failed attempts by PayPal to take the subscription. However even after this arf333 still remains in the Paid Members group - is this expected behaviour ? I would of expected PayPal to send an IPN to tell of the suspension so that they can be knocked out of the group. Appreciate someone taking a look at this please. Cheers Ade |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
Standard messages should not cause failed IPNs, esp why would subscr_payment keep sending more and more identical IPNs - our bug, PayPals, or expected somehow?
Make sure user still subscribed, as he did re-pay in end
Handle 'recurring_payment_suspended_due_to_max_failed_payment' IPN, or skip it and handle subscr_failed (see below)
Handle 'subscr_failed' IPN (don't we already? Maybe we did, but user re-subscribed?)
Commit & explain all
IPN messages identified for user...
recurring_payment_suspended_due_to_max_failed_payment
subscr_failed
subscr_payment
subscr_signup
PayPal was sending a 'recurring_payment_suspended_due_to_max_failed_payment' IPN, rather than a 'subscr_eot'. We will now handle 'recurring_payment_suspended_due_to_max_failed_payment' too.
Additionally routine 'subscr_payment' and 'subscr_failed' IPNs will now be properly ignored as these were not being processed properly, making PayPal keep resending them (an annoyance, but not causing any direct bugs).
Since this tweak we are getting the following from PayPal.
Dear Graham Welch,
Please check your server that handles PayPal Instant Payment Notifications (IPN). Instant Payment Notifications sent to the following URL(s) are failing:
http://vwgolfmk1.org.uk/data/ecommerce.php?from=paypal&product=USERGROUP5
http://vwgolfmk1.org.uk/data/ecommerce.php?from=paypal&product=USERGROUP4
If you do not recognize this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information. If this problem continues, IPNs may be disabled for your account.
Perhaps PayPal is not always getting the response it expected ?
Cheers
Ade