Method: ActiveMerchant::Billing::EbanxGateway#refund

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

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



84
85
86
87
88
89
90
91
92
93
# File 'lib/active_merchant/billing/gateways/ebanx.rb', line 84

def refund(money, authorization, options = {})
  post = {}
  add_integration_key(post)
  add_operation(post)
  add_authorization(post, authorization)
  post[:amount] = amount(money)
  post[:description] = options[:description]

  commit(:refund, post, options)
end