Method: ActiveMerchant::Billing::PayflowGateway#scrub

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

#scrub(transcript) ⇒ Object



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

def scrub(transcript)
  transcript.
    gsub(%r((<CardNum>)[^<]*(</CardNum>)), '\1[FILTERED]\2').
    gsub(%r((<CVNum>)[^<]*(</CVNum>)), '\1[FILTERED]\2').
    gsub(%r((<AcctNum>)[^<]*(</AcctNum>)), '\1[FILTERED]\2').
    gsub(%r((<Password>)[^<]*(</Password>)), '\1[FILTERED]\2')
end