lib/active_merchant/billing/gateways/clearhaus.rb in activemerchant-1.101.0 vs lib/active_merchant/billing/gateways/clearhaus.rb in activemerchant-1.102.0

- old
+ new

@@ -51,17 +51,18 @@ def authorize(amount, payment, options={}) post = {} add_invoice(post, amount, options) - action = if payment.respond_to?(:number) - add_payment(post, payment) - '/authorizations' - elsif payment.kind_of?(String) - "/cards/#{payment}/authorizations" - else - raise ArgumentError.new("Unknown payment type #{payment.inspect}") - end + action = + if payment.respond_to?(:number) + add_payment(post, payment) + '/authorizations' + elsif payment.kind_of?(String) + "/cards/#{payment}/authorizations" + else + raise ArgumentError.new("Unknown payment type #{payment.inspect}") + end post[:recurring] = options[:recurring] if options[:recurring] post[:card][:pares] = options[:pares] if options[:pares] commit(action, post)