When payment fails, does not remove license

Created on 18 March 2024, about 1 year ago

Hi! Thank you for your fabulous module.

Selling monthly (recurring) role licenses via Stripe.

I actually do not know if which module is causing this, but when a payment fails on Stripe a recurring (role) order:

  1. order registers as valid (Stripe payment)
  2. subscription prepares for a new monthly payment
  3. role does not get removed

Actually now that I look at it, could be Stripe, have you perhaps come across this issue?

Most appreciated.

💬 Support request
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France liliplanet Cannes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @liliplanet
  • I am also experiencing this issue. I am also using stripe.

  • Update: I discovered why this was happening.

    On my site, this was due to the configuration of the billing schedules. In the dunning options, I allowed it to re-attempt billing for several attempts over a few days if the initial payment failed. This kept the subscription active while the billing schedule was re-attempting the charges based on the dunning settings. I reduced the settings to the minimum, and the subscription cancelled successfully.

    I would like to suggest a new feature to this module to handle this type of situation. There could be a boolean added as an option to the billing schedules so that if the payment fails, the license will go to suspended status. If the payment ends up failing after the dunning schedule cycle completes, then the subscription would be completely cancelled. But, if the payment ends up being successful within the dunning schedule, the license could be re-activated.

    It would be great to have this feature to suspend the license while the order is waiting for payment. Thanks for considering!

    Thanks to the developers for making a great module!

  • 🇵🇰Pakistan Qaiser iqbal

    @jbuttler, how you are testing the subscription? had the billing scheduled for days or hours?. I mean if the billing cycle is set for weeks then how one should test it? obviously one can't wait for weeks to test it.

  • Unfortunately I still am getting errors with licensing, renewals, and cancellations. Now, the subscriptions are creating multiple duplicate licenses for users, and not cancelling the old ones. So I have users who should have their subscriptions and licenses cancelled completely, but instead have multiple active licenses which were reproduced when billing failed.

    I also noticed several buggy issues with trials. When a trial ends, the subscription seems to leave the original license for the trial active with unlimited duration, then it creates another license controlled by the subscription. So there are many orphaned licenses in the system related to subscription billing failures. This seems to be a major issue and would allow users access to licensed content after a subscription should be ended.

    Even without trial-based licenses, occasionally, a license is cancelled when the subscription is cancelled, but this seems to not be working as it should. I went through the setup several times to make sure everything is correct and I can't find any issue with my configuration.

    I was testing by using a daily billing schedule to control the recurring billing to speed up the cycle. For some products, I used trials. For other products, I purchased several different subscription products under multiple test accounts and deleted the payment method, causing a billing failure the next day. For others I entered an example payment method that was due to expire. In all cases, the subscription was cancelled correctly, but the associated licenses were duplicated many times and the user retained access to licensed content.

  • 🇬🇷Greece vensires

    I don't currently have any solution to provide but I am just wondering whether we should change the priority to Major. I suspect not yet(?) but please validate. It's your last phrase that keeps me from changing it.

  • 🇵🇰Pakistan Qaiser iqbal

    same problem, subscription is canceled after multiple payment attempts, but the license is still active.

  • I would recommend making this a major issue. It makes the license module nearly unusable in my case. It must be a bug. I'm sure its not intended to let people keep a license when payment fails, otherwise why have licenses attached to subscriptions at all.

Production build 0.71.5 2024