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

- old
+ new

@@ -53,10 +53,21 @@ add_order(post, money, options) commit(:post, "charges/#{identifier}/refund", post) end + def supports_scrubbing + true + end + + def scrub(transcript) + transcript. + gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]'). + gsub(%r((&?card%5Bnumber%5D=)[^&]*)i, '\1[FILTERED]'). + gsub(%r((&?card%5Bcvc%5D=)[^&]*)i, '\1[FILTERED]') + end + private def add_order(post, money, options) post[:description] = options[:description] || "Active Merchant Purchase" post[:reference_id] = options[:order_id] if options[:order_id] @@ -205,6 +216,5 @@ } end end end end -