lib/active_merchant/billing/gateways/balanced.rb in tanga_activemerchant-1.37.0 vs lib/active_merchant/billing/gateways/balanced.rb in tanga_activemerchant-1.38.0

- old
+ new

@@ -67,11 +67,11 @@ self.supported_cardtypes = [:visa, :master, :american_express, :discover] self.homepage_url = 'https://www.balancedpayments.com/' self.display_name = 'Balanced' self.money_format = :cents - class Error < StandardError + class Error < ActiveMerchant::ActiveMerchantError attr_reader :response def initialize(response, msg=nil) @response = response super(msg || response['description']) @@ -208,10 +208,10 @@ # # ==== Parameters # # * <tt>authorization</tt> -- The uri of the authorization returned from # an `authorize` request. - def void(authorization) + def void(authorization, options = {}) post = {} post[:is_void] = true create_transaction(:put, authorization, post) rescue Error => ex