Method: ActiveMerchant::Billing::UsaEpayAdvancedGateway#refund_transaction

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

#refund_transaction(options = {}) ⇒ Object

Refund transaction.

Note: Required after a transaction has been settled. Refunds both credit card and check transactions.

Required

  • :reference_number

  • :amount – amount to refund; 0 will refund original amount

Response

  • #message – transaction response hash



760
761
762
763
764
765
# File 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb', line 760

def refund_transaction(options = {})
  requires! options, :reference_number, :amount

  request = build_request(__method__, options)
  commit(__method__, request)
end