Method: ActiveMerchant::Billing::DeepstackGateway#scrub
- Defined in:
- lib/active_merchant/billing/gateways/deepstack.rb
#scrub(transcript) ⇒ Object
80 81 82 83 84 85 86 87 88 |
# File 'lib/active_merchant/billing/gateways/deepstack.rb', line 80 def scrub(transcript) transcript. gsub(%r((Authorization: Bearer )\w+), '\1[FILTERED]'). gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]'). gsub(%r((Hmac: )[\w=]+), '\1[FILTERED]'). gsub(%r((\\"account_number\\":\\")[\w*]+), '\1[FILTERED]'). gsub(%r((\\"cvv\\":\\")\w+), '\1[FILTERED]'). gsub(%r((\\"expiration\\":\\")\w+), '\1[FILTERED]') end |