lib/active_merchant/billing/gateways/paymill.rb in activemerchant-1.52.0 vs lib/active_merchant/billing/gateways/paymill.rb in activemerchant-1.53.0

- old
+ new

@@ -49,9 +49,20 @@ def store(credit_card, options={}) save_card(credit_card) end + def supports_scrubbing + true + end + + def scrub(transcript) + transcript. + gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]'). + gsub(/(account.number=)(\d*)/, '\1[FILTERED]'). + gsub(/(account.verification=)(\d*)/, '\1[FILTERED]') + end + private def add_credit_card(post, credit_card) post['account.number'] = credit_card.number post['account.expiry.month'] = sprintf("%.2i", credit_card.month)