Changing expire date on subscription

A user signs up for a monthly subscription, when I go to change the expiration date and the current date passes the expiration date, the user still has access without making payment.

For example,

User signs up on 11/1 for a monthly membership. The next day, I set the expiration date for 11/10. On 11/12, user signs in and still has access to the monthly membership. On the backend, user still is assigned to the monthly membership.

How can I get this fixed so when I set the expiration date, the membership expires and goes back to free?

  • Jude
    • DEV MAN

    Hi there @Neil Savage

    Hope you had a great weekend !

    Which gateway are you using ? If its a non recurring gateway then what you want can be done by setting the invoice status and date along with the expiry date. I had a chat with the developer along similar lines in the past and here are his thoughts on the subject

    Instead of writing custom code to bulk-create invoices I’d create some dummy-export file in “Membership 2 > Settings > Import tool” and then edit in in some text editor to add all the members with invoice details

    So you can run the import on a test-site and use &reset=1 on the Membership 2 Settings page to reset the data-import if something is not working (much better then starting to edit existing invoices via SQL)

    The above works better if you have many members, and not sure about editing SQL manually

    Cheers

    Jude

  • Neil Savage
    • Design Lord, Child of Thor

    Thank you for the quick reply.

    I am using stripe recurring payment for all subscriptions. I was changing the expiration date to see what would happen, almost like a test for when the month does run out. Should the subscription deactivate at the end of the month if no payment is made?

  • Jude
    • DEV MAN

    Hey @Neil Savage

    This may not be possible in your case because of the recurring gateway. Also I understand that the product is specd in a way that any extensions/additions done via the admin do not expire like payments made from a gateway.

    Cheers

    Jude