From 73607a5dfc4dc0ae5391d4f9c2016156161607b2 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Mon, 18 Jun 2018 13:22:53 -0700 Subject: [PATCH] dont require validation for card update --- app/supporter.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/supporter.rb b/app/supporter.rb index 7e959ba0..edc701ea 100644 --- a/app/supporter.rb +++ b/app/supporter.rb @@ -54,12 +54,11 @@ post '/supporter/update' do plan: plan_type ) - site.update( - stripe_customer_id: customer.id, - stripe_subscription_id: customer.subscriptions.first.id, - plan_ended: false, - plan_type: plan_type - ) + site.stripe_customer_id = customer.id + site.stripe_subscription_id = customer.subscriptions.first.id + site.plan_ended = false + site.plan_type = plan_type + site.save_changes validate: false end end