lib/active_merchant/billing/gateways/merchant_one.rb in activemerchant-1.108.0 vs lib/active_merchant/billing/gateways/merchant_one.rb in activemerchant-1.109.0
- old
+ new
@@ -11,11 +11,11 @@
end
BASE_URL = 'https://secure.merchantonegateway.com/api/transact.php'
self.supported_countries = ['US']
- self.supported_cardtypes = [:visa, :master, :american_express, :discover]
+ self.supported_cardtypes = %i[visa master american_express discover]
self.homepage_url = 'http://merchantone.com/'
self.display_name = 'Merchant One Gateway'
self.money_format = :dollars
def initialize(options = {})
@@ -74,10 +74,10 @@
end
def add_creditcard(post, creditcard)
post['cvv'] = creditcard.verification_value
post['ccnumber'] = creditcard.number
- post['ccexp'] = "#{sprintf("%02d", creditcard.month)}#{creditcard.year.to_s[-2, 2]}"
+ post['ccexp'] = "#{sprintf('%02d', creditcard.month)}#{creditcard.year.to_s[-2, 2]}"
end
def commit(action, money, parameters={})
parameters['username'] = @options[:username]
parameters['password'] = @options[:password]