- subscr_cancel
- recurring_payment_profile_cancel
They BOTH trigger the s2m API Cancellations Notification, for which I have some php that sends an email to the site owner, who therefore gets two (nearly) identical emails when a member cancels.
The IPN log shows that s2m is aware of the duplication:
- Code: Select all
4 => 'Ignoring Cancellation. An Auto-EOT Time is already set for this Member. An s2Member API Notification will still be processed however.',
5 => 'Cancellation Notification URLs have been processed.',
How can I PREVENT one of the API Notifications from being processed, or somehow distinguish between the two different IPNs, so that my routine runs only once?