From d5ab9eb67517ddb2e9f19c2795b61d5d4bac480d Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 4 Aug 2017 17:09:00 +1000 Subject: [PATCH] Hide option to 'Remember this card' when an existing card is selected --- app/views/spree/checkout/payment/_stripe.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/spree/checkout/payment/_stripe.html.haml b/app/views/spree/checkout/payment/_stripe.html.haml index 398636cdd3..b8050b91ca 100644 --- a/app/views/spree/checkout/payment/_stripe.html.haml +++ b/app/views/spree/checkout/payment/_stripe.html.haml @@ -10,10 +10,10 @@ %div{ ng: { if: '!secrets.selected_card' } } = render "spree/checkout/payment/gateway", payment_method: payment_method -.row - .small-12.columns.text-right - = check_box_tag 'secrets.save_requested_by_customer' - = label_tag 'secrets.save_requested_by_customer', t('.remember_this_card') + .row + .small-12.columns.text-right + = check_box_tag 'secrets.save_requested_by_customer' + = label_tag 'secrets.save_requested_by_customer', t('.remember_this_card') :javascript Stripe.setPublishableKey("#{ENV['STRIPE_INSTANCE_PUBLISHABLE_KEY']}")