Method: ActiveMerchant::Billing::CheckoutV2Gateway#refund

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

#refund(amount, authorization, options = {}) ⇒ Object



73
74
75
76
77
78
79
80
# File 'lib/active_merchant/billing/gateways/checkout_v2.rb', line 73

def refund(amount, authorization, options = {})
  post = {}
  add_invoice(post, amount, options)
  add_customer_data(post, options)
  (post, options)

  commit(:refund, post, options, authorization)
end