Method: ActiveMerchant::Billing::PaymentezGateway#scrub
- Defined in:
- lib/active_merchant/billing/gateways/paymentez.rb
#scrub(transcript) ⇒ Object
150 151 152 153 154 155 |
# File 'lib/active_merchant/billing/gateways/paymentez.rb', line 150 def scrub(transcript) transcript. gsub(%r{(\\?"number\\?":)(\\?"[^"]+\\?")}, '\1[FILTERED]'). gsub(%r{(\\?"cvc\\?":)(\\?"[^"]+\\?")}, '\1[FILTERED]'). gsub(%r{(Auth-Token: )([A-Za-z0-9=]+)}, '\1[FILTERED]') end |