Module: Moneytree::Order

Extended by:
ActiveSupport::Concern
Defined in:
lib/moneytree/order.rb

Instance Method Summary collapse

Instance Method Details

#new_payment(*args) ⇒ Object



11
12
13
14
15
# File 'lib/moneytree/order.rb', line 11

def new_payment(*args)
  payment = Payment.new(*args)
  moneytree_transactions << payment
  payment
end