{% extends "base.html" %} {% block title %}{{ t('webhook_secret.title') }} — painfree{% endblock %} {% block body %} {% if secret %}
{{ t('webhook_secret.copy_now_why') }}
{{ secret }}{{ t('webhook_secret.old_still_signing_why') }}
{{ t('webhook_secret.already_registered_why') }} {{ subscription.url }}{{ t('webhook_secret.already_registered_tail') }}
{{ t('webhook_secret.rotate_instead') }}
| {{ t('webhooks.endpoint') }} | {{ subscription.url }} |
| {{ t('webhook_secret.subscription') }} | {{ subscription.subscription_id }} |
| {{ t('webhooks.events') }} | {{ subscription.event_types | join(', ') }} |
| {{ t('webhook_secret.secret_generation') }} | {{ subscription.secret_generation }} |
{{ t('webhook_secret.verifying_body') }}
expected = "v1=" + HMAC_SHA256(secret, timestamp + "." + raw_request_body)
{{ t('webhook_secret.verifying_tail') }}