Method: ActiveMerchant::Billing::NetbillingGateway#scrub

Defined in:
lib/active_merchant/billing/gateways/netbilling.rb

#scrub(transcript) ⇒ Object



114
115
116
117
118
119
# File 'lib/active_merchant/billing/gateways/netbilling.rb', line 114

def scrub(transcript)
  transcript.
    gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]').
    gsub(%r((&?card_number=)[^&]*), '\1[FILTERED]').
    gsub(%r((&?card_cvv2=)[^&]*), '\1[FILTERED]')
end