• Resolved faiz1234

    (@faiz1234)


    Hi,

    I created an AI tools website and for membership I want use paid membership pro, so I created 3 level and for testing I setup a day subscription memebership, I created a separate user account and made purchase for that memebership, but even after the 1 day, I am still able to access that membership content although it should be restricted after 1 day because in the backend, I have selected daily subscription while creating the membership. Can you please help me with this?

    Thanks!

    • This topic was modified 1 year, 3 months ago by faiz1234.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jason Coleman

    (@strangerstudios)

    Users will have their membership removed in 3 cases:

    1. If an admin changes their level (not applicable here I think, but including for completeness).
    2. If the membership is linked to a recurring subscription, it will be cancelled when the recurring subscription is cancelled at the gateway. Depending on your gateway, this might only happen after 1-3 failed payments and retries. It’s generally good to allow the gateway to retry payments (it sometimes works), but if you’d rather cancel after the first failed payment, we have short code gist for that: https://www.paidmembershipspro.com/automatically-cancel-membership-after-x-failed-payments/
    3. If the membership level has an “expiration date”, then members past the expiration date will have their membership cancelled when the membership_expired cron job runs. The cron job runs every hours. Make sure that WP Cron is running fine on your site. Then also note that for memberships set to expire in “1 day”, in practice this means for the rest of today and until the end of tomorrow (based on the site’s timezone). So if you check out at 6pm Monday, you have access until 12:01 AM Wednesday morning. You can use a 24 hour expiration if you really want to expire on the dot 24 hours from checkout.

    Let me know if this helps.

    Plugin Author Jason Coleman

    (@strangerstudios)

    If you need it, we have an article on troubleshooting cron issues. https://www.paidmembershipspro.com/troubleshooting-issues-with-wp-cron-and-other-scheduled-services/

    Thread Starter faiz1234

    (@faiz1234)

    Thanks for the details, how can I setup to expire in exactly 24 hours?

    Thread Starter faiz1234

    (@faiz1234)

    Another question is, if I want to test the second point mentioned by you above “If the membership is linked to a recurring subscription, it will be cancelled when the recurring subscription is cancelled at the gateway. Depending on your gateway, this might only happen after 1-3 failed payments and retries. It’s generally good to allow the gateway to retry payments (it sometimes works), but if you’d rather cancel after the first failed payment, we have short code gist for that:?https://www.paidmembershipspro.com/automatically-cancel-membership-after-x-failed-payments/” how can I do that using test payment gateway? Thanks!

    Plugin Support Jarryd Long

    (@jarryd-long)

    Setting the expiration date to 1 day will give you the closest expiration time to 24 hours. Due to the cron running hourly, there will always be the chance that the user gets access for 24.8 hours or so. You might be able to edit the cron using a third-party plugin like WP Crontrol.

    The test payment gateway doesn’t support recurring payments as PMPro waits for a payment gateway to notify it of renewals. I would recommend setting up a sandbox account in Stripe and running tests from there.

    Thread Starter faiz1234

    (@faiz1234)

    Thanks! During the setup of recurring membership I saw a warning when I set expiration date for the recurring membership, if I want the membership to be expired after certain recurring subscriptions, how should I set that up?

    Thanks!

    Plugin Support Jarryd Long

    (@jarryd-long)

    If you are using Stripe, I would recommend taking a look at our Stripe Billing Limits Add On (https://www.paidmembershipspro.com/add-ons/pmpro-stripe-billing-limits/) which allows you to set a number of billing cycles for a level.

    This won’t be possible with the other payment gateways at this point in time.

    Plugin Support Jarryd Long

    (@jarryd-long)

    Because there have not been any recent updates to this topic, we will be changing the status to resolved.

    Feel free to start a new topic with any other questions you may have.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘having issue with restricting access’ is closed to new replies.