Update payment methods form

This commit is contained in:
Matt-Yorkley
2021-08-10 15:38:35 +01:00
parent 8f7c3a9369
commit a631d057f1
2 changed files with 6 additions and 2 deletions

View File

@@ -81,7 +81,8 @@ class SplitCheckoutController < ::BaseController
params.require(:order).permit(
:email, :shipping_method_id, :special_instructions,
bill_address_attributes: PermittedAttributes::Address.attributes,
ship_address_attributes: PermittedAttributes::Address.attributes
ship_address_attributes: PermittedAttributes::Address.attributes,
payments_attributes: [:payment_method_id]
)
end