dont require validation for card update

This commit is contained in:
Kyle Drake 2018-06-18 13:22:53 -07:00
parent 966e5106e8
commit 73607a5dfc

View file

@ -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