Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memberships are not cancelled for unvalidated accounts on subscription cancellation #55

Open
3 tasks done
dwanjuki opened this issue Jan 24, 2025 · 0 comments
Open
3 tasks done

Comments

@dwanjuki
Copy link
Contributor

Describe the bug
If a level requires email confirmation, if a member of the level hasn't confirmed their email, subscription cancellation at the gateway does not affect the associated membership. The membership continues indefinitely.

pmproec_pmpro_has_membership_level causes pmpro_hasMembershipLevel to return false here for members with unconfirmed emails even when they still have the membership level.
https://github.com/strangerstudios/paid-memberships-pro/blob/2679ab045553b03a08362885325fc7985299dea9/includes/gateway-request-handlers.php#L64-L67

To Reproduce
Steps to reproduce the behavior:

  1. Require email confirmation for a recurring membership level.
  2. Check out for the level, do not confirm your email address.
  3. Cancel the subscription at the gateway.
  4. Observe that the membership remains unchanged.

Expected behavior
Membership is changed to cancel on next payment date.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment

WP 6.7.1 PMPro 3.3.3 PMPro Email Confirmation 0.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant