Method: ActiveMerchant::Billing::MerchantWareVersionFourGateway#void

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

#void(authorization, options = {}) ⇒ Object

Void a transaction.

Parameters

  • authorization - The authorization string returned from the initial authorization or purchase.



83
84
85
86
87
88
89
# File 'lib/active_merchant/billing/gateways/merchant_ware_version_four.rb', line 83

def void(authorization, options = {})
  reference, options[:order_id] = split_reference(authorization)
  request = soap_request(:void) do |xml|
    add_reference_token(xml, reference)
  end
  commit(:void, request)
end