diff --git a/app/controllers/trade/my/orders_controller.rb b/app/controllers/trade/my/orders_controller.rb index 2d587d22d..7cde729aa 100644 --- a/app/controllers/trade/my/orders_controller.rb +++ b/app/controllers/trade/my/orders_controller.rb @@ -42,14 +42,13 @@ def payment_pending def payment_confirm params[:batch].each do |payment_p| payment_p.permit! - payment_p.merge! state: 'all_checked' payment_p[:payment_orders_attributes].each do |_, v| v.merge! order: @order end payment_p.merge! default_form_params @order.payments.build(payment_p) end - @order.save + @order.confirm! end def payment_frozen