Specify name for this payment input

This commit is contained in:
Jean-Baptiste Bellet
2021-08-04 11:24:16 +02:00
committed by Matt-Yorkley
parent c286189225
commit 4c81f0f27b

View File

@@ -4,6 +4,7 @@
- available_payment_methods.each do |payment_method|
%div.checkout-input
= f.radio_button :payment_method_id, payment_method.id,
name: "order[payments_attributes][][payment_method_id]",
id: "payment_method_#{payment_method.id}",
"data-action": "paymentmethod#selectPaymentMethod",
"data-paymentmethod-description": "#{payment_method.description}"