Method: ActiveMerchant::Billing::EbanxGateway#scrub
- Defined in:
- lib/active_merchant/billing/gateways/ebanx.rb
#scrub(transcript) ⇒ Object
140 141 142 143 144 145 146 147 |
# File 'lib/active_merchant/billing/gateways/ebanx.rb', line 140 def scrub(transcript) transcript. gsub(/(integration_key\\?":\\?")(\w*)/, '\1[FILTERED]'). gsub(/(card_number\\?":\\?")(\d*)/, '\1[FILTERED]'). gsub(/(card_cvv\\?":\\?")(\d*)/, '\1[FILTERED]'). gsub(/(network_token_pan\\?":\\?")(\d*)/, '\1[FILTERED]'). gsub(/(network_token_cryptogram\\?":\\?")([\w+=\/]*)/, '\1[FILTERED]') end |