Method: ActiveMerchant::Billing::QvalentGateway#refund

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

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



63
64
65
66
67
68
69
70
71
72
73
# File 'lib/active_merchant/billing/gateways/qvalent.rb', line 63

def refund(amount, authorization, options = {})
  post = {}
  add_invoice(post, amount, options)
  add_reference(post, authorization, options)
  add_customer_data(post, options)
  add_soft_descriptors(post, options)
  post['order.ECI'] = options[:eci] || 'SSL'
  add_customer_reference(post, options)

  commit('refund', post)
end