lib/active_merchant/billing/gateways/nab_transact.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/nab_transact.rb in activemerchant-1.104.0

- old
+ new

@@ -37,11 +37,11 @@ :addcrn => 5, :deletecrn => 5, :trigger => 8 } - SUCCESS_CODES = [ '00', '08', '11', '16', '77' ] + SUCCESS_CODES = ['00', '08', '11', '16', '77'] def initialize(options = {}) requires!(options, :login, :password) super end @@ -82,10 +82,11 @@ true end def scrub(transcript) return '' if transcript.blank? + transcript. gsub(%r((<cardNumber>)[^<]+(<))i, '\1[FILTERED]\2'). gsub(%r((<cvv>)[^<]+(<))i, '\1[FILTERED]\2'). gsub(%r((<password>)[^<]+(<))i, '\1[FILTERED]\2') end @@ -293,9 +294,8 @@ end def request_timeout @options[:request_timeout] || 60 end - end end end