Simple Membership Plugin › Forums › Simple Membership Plugin › Questions About PayPal PPCP Subscription Cancellation When Deleting Members
- This topic has 3 replies, 2 voices, and was last updated 1 day, 7 hours ago by
zequk.
-
AuthorPosts
-
November 22, 2026 at 7:17 am #32490
zequk
ParticipantHello,
I have been testing the PayPal Subscription (New API / PPCP) integration in a Sandbox environment and have discovered an issue regarding the automatic cancellation of PayPal subscriptions when deleting member accounts.
I would appreciate your clarification on the following three points.
**1. Is it possible to prevent SWPM from automatically canceling PayPal PPCP subscriptions when a member account is deleted?**
I found that when I delete a member account, SWPM automatically searches for active subscriptions associated with that member and cancels them through PayPal.
For example, the log shows:
`text
Cancelling all subscription of member id: 2
Active subscriptions found for member ID: 2
Active subscription IDs: I-48X4PCSMFFYJ
Cancelling PayPal PPCP subscription with subscription ID: I-48X4PCSMFFYJ
PayPal PPCP subscription canceled successfully.
`As a result, PayPal sends an automatic cancellation email to the subscriber.
**2. Can this automatic cancellation be disabled specifically when deleting an expired member account?**
In my case, some members may have been expired for several months, but their PayPal subscriptions may still be recorded as active.
If I delete such an expired member account, SWPM cancels the PayPal subscription, which unexpectedly sends a cancellation notification to the former member.
This can cause considerable confusion, especially when the membership expired months ago.
I would prefer that deleting an expired member account does not trigger a cancellation of the associated PayPal subscription.
**3. Is it possible to separate the deletion of a member account from the cancellation of its PayPal subscription?**
Ideally, I would like to be able to delete a member record without affecting the corresponding PayPal subscription.
Could you let me know whether there is an existing setting, filter, action hook, or other supported method to achieve this?
If this functionality is not currently available, would it be possible to consider adding an option to disable automatic PayPal subscription cancellation when deleting a member account?
Thank you very much for your continued development and support of Simple Membership.
Best regards,
November 22, 2026 at 8:18 am #32491zequk
Participant**Additional finding: Deleting a member account cancels the PayPal subscription even when the Subscriber ID field is blank**
I performed another Sandbox test and discovered that deleting an expired member account still causes SWPM to cancel the associated PayPal subscription, even when the Subscriber ID field in the member record has been manually cleared.
The log shows:
`text
PayPal PPCP subscription details found for subscription ID: I-XP09NUUJ9S59
PayPal PPCP subscription canceled successfully.
`PayPal then sent a cancellation notification email to the subscriber.
This indicates that SWPM obtains the subscription ID from somewhere other than the Subscriber ID field in the member record, or from another associated record.
Could you please clarify where SWPM retrieves the subscription ID when deleting a member account?
More importantly, I would like to know whether there is a way to delete a member record without sending a cancellation request to PayPal, regardless of whether the Subscriber ID field is populated or blank.
My intention is to delete only the WordPress membership record while leaving the PayPal subscription completely unchanged.
November 24, 2026 at 4:54 am #32492admin
KeymasterHi, Thanks for testing this in detail. Here’s how it works today.
1. Why deleting a member cancels the subscription
This is on purpose. When a member record is deleted, the plugin cancels every active Stripe SCA and PayPal PPCP subscription linked to that member. That way a customer can’t keep getting charged after their account is gone. Right now there is no setting or filter to turn this off.
2. Where the subscription ID comes from when the Subscriber ID field is blank
The plugin doesn’t rely only on the Subscriber ID field in the member profile. It also looks at the subscription agreement records saved with each payment (Payments menu), which are linked to the member ID. Before cancelling anything, it asks PayPal for the live status of each subscription. Only the ones PayPal reports as active get cancelled. So clearing the Subscriber ID field won’t stop the cancellation.
3. Expired members whose PayPal subscriptions are still active
This is worth checking on its own. If PayPal shows the subscription as active and is still billing, the member normally shouldn’t be expired. Each renewal payment should extend their access. Please check the Payments menu to see whether the renewal payments for those subscriptions were recorded and linked to the right member. If they weren’t, that’s the real issue we should fix, and cancelling the subscription would actually stop the customer from being charged for access they don’t have.
4. Keeping the member record without touching PayPal
For now, the safest option is to set the member’s account status to Inactive or Expired instead of deleting them. That removes their access without sending anything to PayPal. We’ll look at adding a filter so site owners can skip the automatic cancellation when a member is deleted.
November 24, 2026 at 6:28 am #32494zequk
ParticipantHello,
Thank you for your reply and for taking the time to look into my questions.
I would like to explain my membership setup and the reasons behind my current approach, as there are several issues that are interconnected.
**1. My existing legacy PayPal subscriptions**
I have been running my membership blog for approximately 11 years, and I still have many subscribers who originally joined through the old PayPal Hosted Buttons.
Unfortunately, these legacy subscriptions do not have an item number on the PayPal side. As a result, even when monthly recurring payments are successfully processed, the current version of SWPM cannot record these transactions. The member’s “Access Start Date” is also not automatically updated.
Because of this limitation, I have no choice but to assign an unlimited membership duration to these legacy members. If I set their membership duration to something like 30 days, their accounts would eventually expire because the Access Start Date is not automatically updated when their recurring payments are received.
**2. Why I want to use the same unlimited membership level for new subscribers**
I have introduced new membership buttons using the PayPal PPCP integration.
Initially, I considered assigning a new membership level with a one-month duration to subscribers who join through these new buttons, so that SWPM could manage their membership periods automatically.
However, my website is a membership-based blog that protects the content below the “More” tag in its posts.
I have approximately 4,700 posts, and assigning the new membership level’s access permission to every single post would involve an enormous amount of manual work.
Therefore, I decided that new subscribers should also use the same unlimited membership level as my legacy members. This way, I do not have to modify the access permissions of all 4,700 posts.
**3. The problem with subscription cancellations**
This approach creates another problem.
Since the membership level has an unlimited duration, when a subscriber cancels their PayPal subscription, SWPM immediately changes their account status to Inactive.
However, the subscriber may still have paid time remaining under the terms of our service agreement. I would like them to retain access until the end of their paid membership period.
I therefore considered manually clearing the Subscriber ID field in the member’s profile. This appeared to prevent the cancellation webhook from changing the member’s account status when PayPal notified SWPM of a cancellation.
**4. The problem caused by clearing the Subscriber ID**
However, I discovered another issue.
When the Subscriber ID is cleared, deleting a member record can cause SWPM to send a cancellation request to PayPal, even if the member’s account has already expired and the subscriber cancelled their subscription a long time ago.
Consequently, PayPal sends the subscriber another cancellation notification, which can be very confusing, especially for former members who cancelled their subscriptions years ago.
Keeping all expired member records indefinitely is also problematic for the operation of my website.
For example, a former PayPal subscriber may decide to rejoin several months or years later using a different payment method, such as a bank transfer.
If they want to register using the same email address as before, I cannot create a new member account because that email address is already associated with their old record.
I would then have to either delete the old record or change its email address.
However, either action can cause an unwanted notification to be sent to the user, such as a PayPal subscription cancellation notification or an email address change notification. This could cause unnecessary confusion.
**5. My recent test and the solution I have identified**
I recently conducted another test in the PayPal Sandbox environment.
This time, I kept the Subscriber ID in the member record, allowed the subscriber to cancel their subscription, and let the member’s account become Expired.
I then deleted the expired member record.
The SWPM log showed only the following:
`text
SUCCESS: Cancelling all subscription of member id: 7
SUCCESS: No active subscriptions found for member ID: 7
`No cancellation request was sent to PayPal, and the subscriber did not receive another cancellation notification.
This suggests that keeping the Subscriber ID in the member record is the correct approach. When the subscription has already been cancelled on the PayPal side, SWPM recognizes that there are no active subscriptions and does not attempt to cancel it again when the member record is deleted.
Therefore, I intend to keep the Subscriber ID in member records rather than clearing it.
**6. My remaining question and request**
The remaining problem is that my membership level has an unlimited duration.
When a subscriber cancels their PayPal PPCP subscription, SWPM immediately changes their account status to Inactive, even though they may still have paid time remaining.
Ideally, I would like to keep the account Active after the cancellation webhook is received, and then manually change the account status to Expired when the subscriber’s actual paid membership period ends.
Could you please advise me on the following?
1. Is there a setting or filter that would allow SWPM to stop immediately changing a member’s status to Inactive when it receives a PayPal PPCP subscription cancellation webhook?
2. If this is not currently possible, is there a safe way to keep the member’s account Active after cancellation and manually change it to Expired at the end of the paid membership period?
My goal is to retain the existing unlimited membership level for both legacy and new members, avoid having to modify the access permissions of approximately 4,700 posts, keep the Subscriber ID intact, and ensure that subscribers can continue accessing the website until the end of their paid membership period.
I understand that this may require a code-level solution, but I would greatly appreciate any advice or recommendations you can provide.
Thank you very much for your continued support.
Best regards,
-
AuthorPosts
- You must be logged in to reply to this topic.