lib/active_merchant/billing/gateways/qbms.rb in activemerchant-1.78.0 vs lib/active_merchant/billing/gateways/qbms.rb in activemerchant-1.79.0
- old
+ new
@@ -111,9 +111,20 @@
# Query the merchant account status
def query
commit(:query, nil, {})
end
+ def supports_scrubbing?
+ true
+ end
+
+ def scrub(transcript)
+ transcript.
+ gsub(%r((<ConnectionTicket>)[^<]*(</ConnectionTicket>))i, '\1[FILTERED]\2').
+ gsub(%r((<CreditCardNumber>)[^<]*(</CreditCardNumber>))i, '\1[FILTERED]\2').
+ gsub(%r((<CardSecurityCode>)[^<]*(</CardSecurityCode>))i, '\1[FILTERED]\2')
+ end
+
private
def hosted?
@options[:pem]
end