From d22cb0e1e15780432b6d907963ee0e6a3bdeef23 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:21:30 +0000 Subject: [PATCH] Add billing address name to card --- app/views/split_checkout/payment/_stripe_sca.html.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/split_checkout/payment/_stripe_sca.html.haml b/app/views/split_checkout/payment/_stripe_sca.html.haml index 0cfb1c238a..34c4326385 100644 --- a/app/views/split_checkout/payment/_stripe_sca.html.haml +++ b/app/views/split_checkout/payment/_stripe_sca.html.haml @@ -13,6 +13,8 @@ = t('split_checkout.step2.form.stripe.use_new_card') %div{ "data-controller": "stripe", "data-stripe-key": "#{Stripe.publishable_key}" } + = hidden_field_tag "order[payments_attributes][][source_attributes][first_name]", @order.bill_address.first_name + = hidden_field_tag "order[payments_attributes][][source_attributes][last_name]", @order.bill_address.last_name = hidden_field_tag "order[payments_attributes][][source_attributes][month]", nil, { "data-stripe-target": "expMonth" } = hidden_field_tag "order[payments_attributes][][source_attributes][year]", nil, { "data-stripe-target": "expYear" } = hidden_field_tag "order[payments_attributes][][source_attributes][cc_type]", nil, { "data-stripe-target": "brand" }