From cbd4ecbb553994de2661965f46d8dea6a89b6885 Mon Sep 17 00:00:00 2001 From: Paul Arterburn Date: Fri, 22 Mar 2024 22:12:38 +0000 Subject: [PATCH] Update cancel method Fix DABBLE-ME-5R --- app/controllers/registrations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index fa5d2101..0b841998 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -110,7 +110,7 @@ def cancel_subscription if current_user.stripe_id.present? customer = Stripe::Customer.retrieve(current_user.stripe_id) customer.subscriptions.each do |sub| - sub.delete + sub.cancel end end end