lib/active_merchant/billing/gateways/data_cash.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/data_cash.rb in activemerchant-1.116.0

- old
+ new

@@ -260,12 +260,11 @@ def commit(request) response = parse(ssl_post(test? ? self.test_url : self.live_url, request)) Response.new(response[:status] == '1', response[:reason], response, test: test?, - authorization: "#{response[:datacash_reference]};#{response[:authcode]};#{response[:ca_reference]}" - ) + authorization: "#{response[:datacash_reference]};#{response[:authcode]};#{response[:ca_reference]}") end def format_date(month, year) "#{format(month, :two_digits)}/#{format(year, :two_digits)}" end @@ -294,10 +293,10 @@ number.to_s.gsub(/[^A-Za-z0-9]/, '').rjust(6, '0').first(30) end def parse_authorization_string(authorization) reference, auth_code, ca_reference = authorization.to_s.split(';') - {reference: reference, auth_code: auth_code, ca_reference: ca_reference} + { reference: reference, auth_code: auth_code, ca_reference: ca_reference } end end end end