lib/active_merchant/billing/gateways/fat_zebra.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/fat_zebra.rb in activemerchant-1.116.0
- old
+ new
@@ -55,11 +55,11 @@
add_extra_options(post, options)
commit(:post, "purchases/#{CGI.escape(txn_id)}/capture", post)
end
- def refund(money, authorization, options={})
+ def refund(money, authorization, options = {})
txn_id, = authorization.to_s.split('|')
post = {}
add_extra_options(post, options)
add_amount(post, money, options)
@@ -67,17 +67,17 @@
add_order_id(post, options)
commit(:post, 'refunds', post)
end
- def void(authorization, options={})
+ def void(authorization, options = {})
txn_id, endpoint = authorization.to_s.split('|')
commit(:post, "#{endpoint}/void?id=#{txn_id}", {})
end
- def store(creditcard, options={})
+ def store(creditcard, options = {})
post = {}
add_creditcard(post, creditcard)
post[:is_billing] = true if options[:recurring]
@@ -145,10 +145,10 @@
def add_metadata(post, options)
post[:metadata] = options.fetch(:metadata, {})
end
- def commit(method, uri, parameters=nil)
+ def commit(method, uri, parameters = nil)
response =
begin
parse(ssl_request(method, get_url(uri), parameters.to_json, headers))
rescue ResponseError => e
return Response.new(false, 'Invalid Login') if e.response.code == '401'