lib/active_merchant/billing/gateways/paystation.rb in activemerchant-1.78.0 vs lib/active_merchant/billing/gateways/paystation.rb in activemerchant-1.79.0
- old
+ new
@@ -86,9 +86,19 @@
def verify(credit_card, options={})
authorize(0, credit_card, options)
end
+ def supports_scrubbing?
+ true
+ end
+
+ def scrub(transcript)
+ transcript.
+ gsub(%r((pstn_cn=)\d*), '\1[FILTERED]').
+ gsub(%r((pstn_cc=)\d*), '\1[FILTERED]')
+ end
+
private
def new_request
{
:pi => @options[:paystation_id], # paystation account id