You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to re-purchase a rate plan with this module that I have just canceled with end date: now. Although this is possible via API calls. (The Apigee Monetization API backend supports it.)
My gut says the root cause of the issue is here because this method does an incorrect calculation based on dates.
Steps to Reproduce
Go to Prices & Plans and subscribe to a rate plan with start date: today
On your Purchased plans page, cancel the subscription with end date: now (or subscribe to an overlapping rate plan which has the same side effect)
Actual Behavior
The cancalled rate plan is visible under "Active and Future Purchased Plans" on "Purchased plans"
You cannot subscribe to the rate plan again because the module does not allows it, it says "You have already purchased...".
Expected Behavior
The cancalled rate plan is visible under "Cancelled and Expired Purchased Plans" on "Purchased plans"
You can subscribe to the rate plan again, immediatelly - since you have cancelled your subscription with end date: immediatelly.
Screenshots
Notes
Version Info
1.8.0
The text was updated successfully, but these errors were encountered:
Here it was only returning today's date and not proper datetime.
Example: Datetime Object 2021-05-14 00:00:00.000000"
In PR, implemented DateTimeImmutable and now getting "DateTimeImmutable Object ( [date] => 2021-05-14 07:25:29.652616 [timezone_type] => 3 [timezone] => UTC )" with proper datetime which resolves the further If-else logic.
Note: In the existing code it allows user to be subscribed for the cancelled date and next day the subscription actually gets cancelled and user can re purchase the cancelled plan next day.
In this PR the user can immediately cancel his subscription and also can re-purchase it again.
@cnovakhere I am not sure why the cancelled "end date" is "start date" if user selects "NOW" for cancelling the subscription (4G), any reason for doing this?
Description
Unable to re-purchase a rate plan with this module that I have just canceled with end date: now. Although this is possible via API calls. (The Apigee Monetization API backend supports it.)
My gut says the root cause of the issue is here because this method does an incorrect calculation based on dates.
Steps to Reproduce
Actual Behavior
Expected Behavior
Screenshots
Notes
Version Info
1.8.0
The text was updated successfully, but these errors were encountered: