Method: ActiveMerchant::Billing::BridgePayGateway#refund

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

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



53
54
55
56
57
58
59
60
# File 'lib/active_merchant/billing/gateways/bridge_pay.rb', line 53

def refund(amount, authorization, options = {})
  post = initialize_required_fields('Return')

  add_invoice(post, amount, options)
  add_reference(post, authorization)

  commit(post)
end