lib/active_merchant/billing/gateways/realex.rb in activemerchant-1.107.4 vs lib/active_merchant/billing/gateways/realex.rb in activemerchant-1.108.0

- old
+ new

@@ -308,10 +308,10 @@ def add_three_d_secure(xml, options) return unless three_d_secure = options[:three_d_secure] version = three_d_secure.fetch(:version, '') xml.tag! 'mpi' do - if version =~ /^2/ + if /^2/.match?(version) xml.tag! 'authentication_value', three_d_secure[:cavv] xml.tag! 'ds_trans_id', three_d_secure[:ds_transaction_id] else xml.tag! 'cavv', three_d_secure[:cavv] xml.tag! 'xid', three_d_secure[:xid]