lib/active_merchant/billing/gateways/be2bill.rb in activemerchant-1.79.2 vs lib/active_merchant/billing/gateways/be2bill.rb in activemerchant-1.80.0

- old
+ new

@@ -1,6 +1,6 @@ -require "digest/sha2" +require 'digest/sha2' module ActiveMerchant #:nodoc: module Billing #:nodoc: class Be2billGateway < Gateway self.test_url = 'https://secure-test.be2bill.com/front/service/rest/process.php' @@ -70,10 +70,10 @@ end def add_creditcard(post, creditcard) post[:CARDFULLNAME] = creditcard ? creditcard.name : '' post[:CARDCODE] = creditcard ? creditcard.number : '' - post[:CARDVALIDITYDATE] = creditcard ? "%02d-%02s" % [creditcard.month, creditcard.year.to_s[-2..-1]] : '' + post[:CARDVALIDITYDATE] = creditcard ? '%02d-%02s' % [creditcard.month, creditcard.year.to_s[-2..-1]] : '' post[:CARDCVV] = creditcard ? creditcard.verification_value : '' end def parse(response) ActiveSupport::JSON.decode(response)