lib/active_merchant/billing/gateways/merchant_one.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/gateways/merchant_one.rb in activemerchant-1.84.0
- old
+ new
@@ -75,10 +75,10 @@
end
def add_creditcard(post, creditcard)
post['cvv'] = creditcard.verification_value
post['ccnumber'] = creditcard.number
- post['ccexp'] = "#{sprintf("%02d", creditcard.month)}#{"#{creditcard.year}"[-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]