lib/active_merchant/billing/gateways/allied_wallet.rb in activemerchant-1.53.0 vs lib/active_merchant/billing/gateways/allied_wallet.rb in activemerchant-1.54.0

- old
+ new

@@ -74,10 +74,13 @@ def scrub(transcript) transcript. gsub(%r((Authorization: Bearer )[a-zA-Z0-9._-]+)i, '\1[FILTERED]'). gsub(%r(("cardNumber\\?":\\?")[^"]*)i, '\1[FILTERED]'). - gsub(%r(("cVVCode\\?":\\?")[^"]*)i, '\1[FILTERED]') + gsub(%r(("cVVCode\\?":\\?")\d+[^"]*)i, '\1[FILTERED]'). + gsub(%r(("cVVCode\\?":)null), '\1[BLANK]'). + gsub(%r(("cVVCode\\?":\\?")\\?"), '\1[BLANK]"'). + gsub(%r(("cVVCode\\?":\\?")\s+), '\1[BLANK]"') end private def add_amount(post, amount)