Method: ActiveMerchant::Billing::CheckoutV2Gateway#credit

Defined in:
lib/active_merchant/billing/gateways/checkout_v2.rb

#credit(amount, payment, options = {}) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/active_merchant/billing/gateways/checkout_v2.rb', line 52

def credit(amount, payment, options = {})
  post = {}
  add_processing_channel(post, options)
  add_invoice(post, amount, options)
  add_payment_method(post, payment, options, :destination)
  add_source(post, options)
  add_instruction_data(post, options)
  add_payout_sender_data(post, options)
  add_payout_destination_data(post, options)
  (post, options)

  commit(:credit, post, options)
end