(app_configs=None, **kwargs)
return messages
Check that DJSTRIPE_WEBHOOK_SECRET looks correct
Check that DJSTRIPE_WEBHOOK_SECRET looks correct
Check that DJSTRIPE_WEBHOOK_SECRET looks correct
def check_webhook_secret(app_configs=None, **kwargs):
    """
    Check that DJSTRIPE_WEBHOOK_SECRET looks correct
    """
    from .settings import djstripe_settings

    messages = []

    secret = djstripe_settings.WEBHOOK_SECRET
    if secret and not secret.startswith("whsec_"):
        messages.append(
            checks.Warning(
                "DJSTRIPE_WEBHOOK_SECRET does not look valid",
                hint="It should start with whsec_...",
                id="djstripe.W003",
            )
        )

    return messages
def check_webhook_secret ( app_configs = None , * * kwargs ) : from . settings import djstripe_settings messages = [ ] secret = djstripe_settings . WEBHOOK_SECRET if secret and not secret . startswith ( "whsec_" ) : messages . append ( checks . Warning ( "DJSTRIPE_WEBHOOK_SECRET does not look valid" , hint = "It should start with whsec_..." , id = "djstripe.W003" , ) ) return messages