lib/active_merchant/billing/gateways/openpay.rb in activemerchant-1.53.0 vs lib/active_merchant/billing/gateways/openpay.rb in activemerchant-1.54.0
- old
+ new
@@ -89,10 +89,13 @@
def scrub(transcript)
transcript.
gsub(%r((Authorization: Basic )\w+), '\1[FILTERED]').
gsub(%r((card_number\\?":\\?")[^"\\]*)i, '\1[FILTERED]').
- gsub(%r((cvv2\\?":\\?")[^"\\]*)i, '\1[FILTERED]')
+ gsub(%r((cvv2\\?":\\?")\d+[^"\\]*)i, '\1[FILTERED]').
+ gsub(%r((cvv2\\?":)null), '\1[BLANK]').
+ gsub(%r((cvv2\\?":\\?")\\?"), '\1[BLANK]"').
+ gsub(%r((cvv2\\?":\\?")\s+), '\1[BLANK]')
end
private
def create_post_for_auth_or_purchase(money, creditcard, options)
post = {}