Skip to content

Commit

Permalink
simple payment types
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Dec 23, 2024
1 parent d3e52ec commit 7a0b45c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/trade/my/orders_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a0b45c

Please sign in to comment.