lib/active_merchant/billing/gateways/data_cash.rb in activemerchant-1.76.0 vs lib/active_merchant/billing/gateways/data_cash.rb in activemerchant-1.77.0

- old
+ new

@@ -75,9 +75,19 @@ def refund(money, reference, options = {}) commit(build_transaction_refund_request(money, reference)) end + def supports_scrubbing? + true + end + + def scrub(transcript) + transcript. + gsub(/(<pan>)\d+(<\/pan>)/i, '\1[FILTERED]\2'). + gsub(/(<cv2>)\d+(<\/cv2>)/i, '\1[FILTERED]\2'). + gsub(/(<password>).+(<\/password>)/i, '\1[FILTERED]\2') + end private def build_void_or_capture_request(type, money, authorization, options) parsed_authorization = parse_authorization_string(authorization)