lib/active_merchant/billing/gateways/paypal_commerce_platform/paypal_commerce_platform_common.rb
def scrub(transcript)
        transcript.
            gsub(%r((Authorization: Bearer )\w+-\w+), '\1[FILTERED]').
            gsub(%r((Authorization: Basic )\w+=), '\1[FILTERED]').
            gsub(%r((payment_source\[card\]\[security_code\]=)\d+), '\1[FILTERED]').
            gsub(%r((payment_source\[card\]\[number\]=)\d+), '\1[FILTERED]').
            gsub(%r((payment_source\[card\]\[expiry\]=)\d+-\d+), '\1[FILTERED]')
      end
# Scrub Method to filter out sensitive data from /
# the request payload
#
Scrub Method to filter out sensitive data from
the request payload
Scrub Method to filter out sensitive data from the request payload
def scrub(transcript)
        transcript.
            gsub(%r((Authorization: Bearer )\w+-\w+), '\1[FILTERED]').
            gsub(%r((Authorization: Basic )\w+=), '\1[FILTERED]').
            gsub(%r((payment_source\[card\]\[security_code\]=)\d+), '\1[FILTERED]').
            gsub(%r((payment_source\[card\]\[number\]=)\d+), '\1[FILTERED]').
            gsub(%r((payment_source\[card\]\[expiry\]=)\d+-\d+), '\1[FILTERED]')
      end
def scrub ( transcript ) transcript . gsub ( %r( (Authorization: Bearer ) \w +- \w + ) , '\1[FILTERED]' ) . gsub ( %r( (Authorization: Basic ) \w += ) , '\1[FILTERED]' ) . gsub ( %r( (payment_source \[ card \] \[ security_code \] =) \d + ) , '\1[FILTERED]' ) . gsub ( %r( (payment_source \[ card \] \[ number \] =) \d + ) , '\1[FILTERED]' ) . gsub ( %r( (payment_source \[ card \] \[ expiry \] =) \d +- \d + ) , '\1[FILTERED]' ) end
Scrub Method to filter out sensitive data from
the request payload
Scrub Method to filter out sensitive data from the request payload
transcript