Method: ActiveMerchant::Billing::BeanstreamCore#refund

Defined in:
lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb

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



167
168
169
170
171
172
173
174
# File 'lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb', line 167

def refund(money, source, options = {})
  post = {}
  reference, _, type = split_auth(source)
  add_reference(post, reference)
  add_transaction_type(post, refund_action(type))
  add_amount(post, money)
  commit(post)
end