Browse files

Add `do_reset` (aka. `void`) Direct Payment API method implementation

  • Loading branch information...
1 parent af4eb8c commit 6c9843e8b7dc296d3909bc4b14676ff7de11d107 @samleb samleb committed Feb 11, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/active_merchant/billing/gateways/payline/payline_direct_api.rb
View
8 lib/active_merchant/billing/gateways/payline/payline_direct_api.rb
@@ -32,6 +32,14 @@ def do_capture(money, authorization, options = {})
end
alias_method :capture, :do_capture
+ def do_reset(authorization, options = {})
+ direct_api_request :do_reset do |xml|
+ add_version(xml)
+ xml.transactionID authorization
+ end
+ end
+ alias_method :void, :do_reset
+
def do_recurrent_wallet_payment(money, wallet_id, options = {})
currency = currency_code(options[:currency])
direct_api_request :do_recurrent_wallet_payment do |xml|

0 comments on commit 6c9843e

Please sign in to comment.