lib/active_merchant/billing/gateways/redsys.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/redsys.rb in activemerchant-1.137.0
- old
+ new
@@ -264,18 +264,11 @@
commit data, options
end
def verify(creditcard, options = {})
- if options[:sca_exemption_behavior_override] == 'endpoint_and_ntid'
- purchase(0, creditcard, options)
- else
- MultiResponse.run(:use_first_response) do |r|
- r.process { authorize(100, creditcard, options) }
- r.process(:ignore_result) { void(r.authorization, options) }
- end
- end
+ purchase(0, creditcard, options)
end
def supports_scrubbing
true
end
@@ -694,11 +687,10 @@
# The OpenSSL default of an all-zeroes ("\\0") IV is used.
cipher.padding = 0
order_id += "\0" until order_id.bytesize % block_length == 0 # Pad with zeros
- output = cipher.update(order_id) + cipher.final
- output
+ cipher.update(order_id) + cipher.final
end
def mac256(key, data)
OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha256'), key, data)
end