Skip to content

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

@dwanjuki

Description

@dwanjuki

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

Details WP 6.7.1 PMPro 3.3.3 PMPro Email Confirmation 0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions