(self)
return f"{secret_prefix}_...{secret_part}"
Returns a redacted version of the secret, suitable for display purposes.

        Same algorithm used on the Stripe dashboard.
Returns a redacted version of the secret, suitable for display purposes.
Returns a redacted version of the secret suitable for display purposes .
def secret_redacted(self) -> str:
        """
        Returns a redacted version of the secret, suitable for display purposes.

        Same algorithm used on the Stripe dashboard.
        """
        secret_prefix, _, secret_part = self.secret.rpartition("_")
        secret_part = secret_part[-4:]
        return f"{secret_prefix}_...{secret_part}"
def secret_redacted ( self ) -> str : secret_prefix , _ , secret_part = self . secret . rpartition ( "_" ) secret_part = secret_part [ - 4 : ] return f"{secret_prefix}_...{secret_part}"