Method: ActiveMerchant::Billing::WorldpayUsGateway#scrub
- Defined in:
- lib/active_merchant/billing/gateways/worldpay_us.rb
#scrub(transcript) ⇒ Object
79 80 81 82 83 84 85 |
# File 'lib/active_merchant/billing/gateways/worldpay_us.rb', line 79 def scrub(transcript) transcript. gsub(%r((&?merchantpin=)[^&]*)i, '\1[FILTERED]'). gsub(%r((&?ccnum=)[^&]*)i, '\1[FILTERED]'). gsub(%r((&?ckacct=)[^&]*)i, '\1[FILTERED]'). gsub(%r((&?cvv2=)[^&]*)i, '\1[FILTERED]') end |