From 76df526002ed5cccf919508a7382a33c0d4b2a1c Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Tue, 4 Feb 2020 13:14:32 +0000 Subject: [PATCH] Remove dead code from construct_saved_card_attributes --- app/controllers/checkout_controller.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/controllers/checkout_controller.rb b/app/controllers/checkout_controller.rb index 338ed74865..2db9293e00 100644 --- a/app/controllers/checkout_controller.rb +++ b/app/controllers/checkout_controller.rb @@ -301,9 +301,6 @@ class CheckoutController < Spree::StoreController raise Spree::Core::GatewayError, I18n.t(:invalid_credit_card) end - # Not currently supported but maybe we should add it...? - credit_card.verification_value = params[:cvc_confirm] if params[:cvc_confirm].present? - params[:order][:payments_attributes].first[:source] = credit_card params[:order][:payments_attributes].first.delete :source_attributes end