lib/active_merchant/billing/gateways/netbanx.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/netbanx.rb in activemerchant-1.116.0
- old
+ new
@@ -20,16 +20,16 @@
self.money_format = :cents
self.homepage_url = 'https://processing.paysafe.com/'
self.display_name = 'Netbanx by PaySafe'
- def initialize(options={})
+ def initialize(options = {})
requires!(options, :account_number, :api_key)
super
end
- def purchase(money, payment, options={})
+ def purchase(money, payment, options = {})
# Do a Verification with AVS prior to purchase
verification_response = verify(payment, options)
return verification_response if verification_response.message != 'OK'
post = {}
@@ -38,11 +38,11 @@
add_payment(post, payment, options)
commit(:post, 'auths', post)
end
- def authorize(money, payment, options={})
+ def authorize(money, payment, options = {})
# Do a Verification with AVS prior to Auth + Settle
verification_response = verify(payment, options)
return verification_response if verification_response.message != 'OK'
post = {}
@@ -50,18 +50,18 @@
add_payment(post, payment, options)
commit(:post, 'auths', post)
end
- def capture(money, authorization, options={})
+ def capture(money, authorization, options = {})
post = {}
add_invoice(post, money, options)
commit(:post, "auths/#{authorization}/settlements", post)
end
- def refund(money, authorization, options={})
+ def refund(money, authorization, options = {})
# If the transactions that are pending, API call needs to be Cancellation
settlement_data = get_settlement(authorization)
return settlement_data if settlement_data.message != 'OK'
post = {}
@@ -84,27 +84,27 @@
def get_settlement(authorization)
post = {}
commit(:get, "settlements/#{authorization}", post)
end
- def void(authorization, options={})
+ def void(authorization, options = {})
post = {}
add_order_id(post, options)
commit(:post, "auths/#{authorization}/voidauths", post)
end
- def verify(credit_card, options={})
+ def verify(credit_card, options = {})
post = {}
add_payment(post, credit_card, options)
add_order_id(post, options)
commit(:post, 'verifications', post)
end
# note: when passing options[:customer] we only attempt to add the
# card to the profile_id passed as the options[:customer]
- def store(credit_card, options={})
+ def store(credit_card, options = {})
# locale can only be one of en_US, fr_CA, en_GB
requires!(options, :locale)
post = {}
add_credit_card(post, credit_card, options)
add_customer_data(post, options)