Method: ActiveMerchant::Billing::FirstdataE4V27Gateway#scrub
- Defined in:
- lib/active_merchant/billing/gateways/firstdata_e4_v27.rb
#scrub(transcript) ⇒ Object
114 115 116 117 118 119 120 121 |
# File 'lib/active_merchant/billing/gateways/firstdata_e4_v27.rb', line 114 def scrub(transcript) transcript. gsub(%r((<Card_Number>).+(</Card_Number>)), '\1[FILTERED]\2'). gsub(%r((<CVDCode>).+(</CVDCode>)), '\1[FILTERED]\2'). gsub(%r((<Password>).+(</Password>))i, '\1[FILTERED]\2'). gsub(%r((<CAVV>).+(</CAVV>)), '\1[FILTERED]\2'). gsub(%r((CARD NUMBER\s+: )#+\d+), '\1[FILTERED]') end |