mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add billing address name to card
This commit is contained in:
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user