lib/active_merchant/billing/gateways/monei.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/monei.rb in activemerchant-1.116.0
- old
+ new
@@ -27,11 +27,11 @@
# :sender_id Sender ID
# :channel_id Channel ID
# :login User login
# :pwd User password
#
- def initialize(options={})
+ def initialize(options = {})
requires!(options, :sender_id, :channel_id, :login, :pwd)
super
end
# Public: Performs purchase operation
@@ -43,11 +43,11 @@
# :billing_address Hash with billing address information
# :description Merchant created purchase description (optional)
# :currency Sale currency to override money object or default (optional)
#
# Returns Active Merchant response object
- def purchase(money, credit_card, options={})
+ def purchase(money, credit_card, options = {})
execute_new_order(:purchase, money, credit_card, options)
end
# Public: Performs authorization operation
#
@@ -58,11 +58,11 @@
# :billing_address Hash with billing address information
# :description Merchant created authorization description (optional)
# :currency Sale currency to override money object or default (optional)
#
# Returns Active Merchant response object
- def authorize(money, credit_card, options={})
+ def authorize(money, credit_card, options = {})
execute_new_order(:authorize, money, credit_card, options)
end
# Public: Performs capture operation on previous authorization
#
@@ -74,11 +74,11 @@
# :currency Sale currency to override money object or default (optional)
#
# Note: you should pass either order_id or description
#
# Returns Active Merchant response object
- def capture(money, authorization, options={})
+ def capture(money, authorization, options = {})
execute_dependant(:capture, money, authorization, options)
end
# Public: Refunds from previous purchase
#
@@ -90,22 +90,22 @@
# :currency Sale currency to override money object or default (optional)
#
# Note: you should pass either order_id or description
#
# Returns Active Merchant response object
- def refund(money, authorization, options={})
+ def refund(money, authorization, options = {})
execute_dependant(:refund, money, authorization, options)
end
# Public: Voids previous authorization
#
# authorization - Reference to previous authorization, obtained from response object returned by authorize
# options - Hash containing capture options
# :order_id Merchant created id for the authorization (optional)
#
# Returns Active Merchant response object
- def void(authorization, options={})
+ def void(authorization, options = {})
execute_dependant(:void, nil, authorization, options)
end
# Public: Verifies credit card. Does this by doing a authorization of 1.00 Euro and then voiding it.
#
@@ -115,10 +115,10 @@
# :billing_address Hash with billing address information
# :description Merchant created authorization description (optional)
# :currency Sale currency to override money object or default (optional)
#
# Returns Active Merchant response object of Authorization operation
- def verify(credit_card, options={})
+ def verify(credit_card, options = {})
MultiResponse.run(:use_first_response) do |r|
r.process { authorize(100, credit_card, options) }
r.process(:ignore_result) { void(r.authorization, options) }
end
end