-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong message issue when the user has canceled the subscription #122
Comments
Hello @gagan0123, Every time the page loads we fire the following function & update the transcoder/admin/rt-transcoder-handler.php Lines 383 to 399 in 7c7c5d0
If we are having a subscription then we get the following response, which is later saved in our options table. "499b3375698cf000135d390f6729780b" => [
"status" => 1,
"product" => "162172",
"price_id" => "1",
"expires" => "2023-03-03 23:59:59",
"valid_from" => "2023-01-31 00:00:00",
"msg" => "Authorized",
"usage" => 0,
"plan" => [
"id" => "162172-1",
"name" => "FREE",
"description" => "",
"status" => 1,
"price_per_month" => 0,
"bandwidth" => 10,
"filesize" => 0.1953125,
"overcharge" => 0,
"expires" => "2023-03-03 23:59:59",
"plan_slug" => "free"
],
"used" => 0,
"total" => 5368709120,
"sub_status" => 1,
"remaining" => 5368709120,
] Whereas if there is no subscription attached to our API key then we get the following result, which is later saved in our options table. (This happens if we are having an API key saved in our DB but the subscription in it has expired or canceled). "499b3375698cf000135d390f6729780b" => [
"status" => "error",
"msg" => "Subscription is not active.",
] This way we are checking the status of our API key on every visit to our admin. Now while displaying the usage widget on our admin page we are having a condition that should give us a false when our subscription is expired or canceled. transcoder/admin/rt-transcoder-handler.php Lines 650 to 654 in 7c7c5d0
But as there is no specific check for transcoder/admin/rt-transcoder-handler.php Lines 716 to 718 in 7c7c5d0
So, the conclusion is, After updating the condition we will be getting the following results: Please let me know if this approach sounds good & we can go ahead. cc: @aviral-mittal |
…-cancellation GH-122: Wrong message issue when the user has canceled the subscription [Develop]
Upon canceling the subscription, the user is getting the mail notification for cancel subscription which tell the user that You have canceled the subscription which is ✅
But the Dashboard shows this message(screenshot) which is completely misleading.
We are conveying different information in mail and dashboard. This should be fixed.
The users are clueless about what action needs to be performed in this scenario as he himself is not aware that it is cause of cancel subscription event.
The text was updated successfully, but these errors were encountered: