lib/active_merchant/billing/gateways/balanced.rb in activemerchant-1.101.0 vs lib/active_merchant/billing/gateways/balanced.rb in activemerchant-1.102.0
- old
+ new
@@ -42,16 +42,17 @@
add_amount(post, money)
post[:description] = options[:description]
add_common_params(post, options)
MultiResponse.run do |r|
- identifier = if(payment_method.respond_to?(:number))
- r.process { store(payment_method, options) }
- r.authorization
- else
- payment_method
- end
+ identifier =
+ if(payment_method.respond_to?(:number))
+ r.process { store(payment_method, options) }
+ r.authorization
+ else
+ payment_method
+ end
r.process { commit('debits', "cards/#{card_identifier_from(identifier)}/debits", post) }
end
end
def authorize(money, payment_method, options = {})
@@ -59,15 +60,16 @@
add_amount(post, money)
post[:description] = options[:description]
add_common_params(post, options)
MultiResponse.run do |r|
- identifier = if(payment_method.respond_to?(:number))
- r.process { store(payment_method, options) }
- r.authorization
- else
- payment_method
- end
+ identifier =
+ if(payment_method.respond_to?(:number))
+ r.process { store(payment_method, options) }
+ r.authorization
+ else
+ payment_method
+ end
r.process { commit('card_holds', "cards/#{card_identifier_from(identifier)}/card_holds", post) }
end
end
def capture(money, identifier, options = {})