lib/active_merchant/billing/gateways/balanced.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/gateways/balanced.rb in activemerchant-1.87.0
- old
+ new
@@ -43,16 +43,16 @@
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
+ r.process { store(payment_method, options) }
+ r.authorization
+ else
+ payment_method
end
- r.process{commit('debits', "cards/#{card_identifier_from(identifier)}/debits", post)}
+ r.process { commit('debits', "cards/#{card_identifier_from(identifier)}/debits", post) }
end
end
def authorize(money, payment_method, options = {})
post = {}
@@ -60,16 +60,16 @@
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
+ 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)}
+ r.process { commit('card_holds', "cards/#{card_identifier_from(identifier)}/card_holds", post) }
end
end
def capture(money, identifier, options = {})
post = {}
@@ -116,10 +116,10 @@
def reference_identifier_from(identifier)
case identifier
when %r{\|}
uri = identifier.
split('|').
- detect{|part| part.size > 0}
+ detect { |part| part.size > 0 }
uri.split('/')[2]
when %r{\/}
identifier.split('/')[5]
else
identifier