From d9fa879b037524f05aeecdf0cf4bb92be7fde8f7 Mon Sep 17 00:00:00 2001 From: Eli Duke Date: Wed, 25 Oct 2023 10:36:22 -0700 Subject: [PATCH] Fixes support subscription cancelation The stripe gem deprecated subscription `delete`. The new way is now `cancel`. This should fix the issue with canceling subscriptions. --- app/controllers/support_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/support_controller.rb b/app/controllers/support_controller.rb index cad058ddd..817c700e2 100644 --- a/app/controllers/support_controller.rb +++ b/app/controllers/support_controller.rb @@ -95,7 +95,7 @@ def update_subscription def cancel_subscription subscription = Stripe::Subscription.retrieve(params[:subscription_id]) - if subscription&.delete + if subscription&.cancel SupportSession.find_by(token: params[:token]).destroy flash.now[:notice] = t('views.support.cancel_subscription.notice') else