Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

void() operation

  • Loading branch information...
commit 41a27a87f51bcde8114fb1b79b0f695f830bb808 1 parent b0e49fb
@jzw jzw authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/active_merchant/billing/gateways/merchant_e_solutions.rb
View
11 lib/active_merchant/billing/gateways/merchant_e_solutions.rb
@@ -39,9 +39,9 @@ def purchase(money, creditcard_or_card_id, options = {})
commit('D', money, post)
end
- def capture(money, authorization, options = {})
+ def capture(money, transaction_id, options = {})
post ={}
- post[:transaction_id] = authorization
+ post[:transaction_id] = transact
commit('S', money, post)
end
@@ -63,8 +63,11 @@ def credit(money, creditcard_or_card_id, options = {})
commit('C', money, post)
end
-# def void
-# end
+ def void(transaction_id)
+ post = {}
+ post[:transaction_id] = transaction_id
+ commit('V', nil, post)
+ end
private

0 comments on commit 41a27a8

Please sign in to comment.
Something went wrong with that request. Please try again.