Set end date when a subscription is canceled

Created on 21 September 2023, 9 months ago

Problem/Motivation

Coming out of https://www.drupal.org/project/commerce_recurring/issues/3091587 β†’ you are now able to cancel your subscription either immediately or when the subscription is set to run out.

As an end user, when I cancel immediately, my subscription indicates that clearly -- it's set as "Canceled". Great!

But if I set my order to cancel when my subscription is set to run out, I don't really have any indication that my subscription won't charge me. The Status is still "Active" and I still don't have an End value. If I try to re-cancel, thinking something went wrong, I do see that my order is set to be canceled, but that's not highly reassuring.

Steps to reproduce

1. Purchase a subscription
2. Ask to cancel the subscription using the option "End of the current billing period"
3. See a message that "The subscription has been scheduled for cancellation."
4. Return to your Subscriptions page.
5. See no end date on your subscription, and see that it's still Active.
6. If you're me - Feel confused -- did the cancelation work?

Proposed resolution

Can we set the end date on these to-be-canceled orders, so the user knows their card will not be charged again? While we're at it, why not set the value of "End" to the current time when you cancel immediately so you can figure out when you canceled your subscription?

Remaining tasks

Add patch for the above

User interface changes

Canceled and to-be-canceled subscriptions will have an end date.

API changes

None

Data model changes

None

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mariacha1

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

Comments & Activities

Production build 0.69.0 2024