opyebWebhookLab

Toss Payments · payment status

Verify Toss Payments webhook signatures (v1)

One-line answer

Toss Payments signs body:transmission-time with HMAC-SHA256, base64-encodes it, and sends one or more v1: values.

Unlike Stripe, the body comes first and the timestamp is appended. If several signatures are present, one match is enough, and requests older than five minutes should not be processed.

Sign & verify

e.g. GitHub webhook Secret, Stripe whsec_…, Slack Signing Secret

Generated signature header

X-Hub-Signature-256

Enter a secret and body, then press Generate signature.

Verify a received signature

Original vs re-encoded body

Any proxy or framework that re-serializes JSON breaks the signature. Compare the body you received with the one your server rebuilt.

How to verify

  1. Enter the webhook security key from the Toss Payments developer center.
  2. Put the tosspayments-webhook-transmission-time value into the timestamp field.
  3. Paste the whole tosspayments-webhook-signature (v1:...,v1:...) into the verify field.

Verify a signature in your browser right now.

Guides

Frequently asked questions

Why does the order of the signed string matter?

Toss Payments hashes body + ':' + transmission-time. Putting the timestamp first, as Stripe does, can never match.

Why are there two v1 values?

During key rotation both the old and new key sign the request. One match means the request is genuine.

Is a valid signature enough to trust a payment?

The signature only proves the request came from Toss Payments. Confirm the amount and status again through the payment lookup API.

What should I do with a webhook older than five minutes?

Reject it. Toss Payments retries deliveries itself, and you should deduplicate with the eventId.

Verifier by platform

WebhookVerify GitHub webhook signatures (X-Hub-Signature-256)Compute and verify push / pull_request signatures.WebhookVerify Stripe webhook signatures (Stripe-Signature)Compute t=,v1= signatures and check the 300 s window.WebhookVerify Slack request signatures (X-Slack-Signature)Compute the v0:timestamp:body signature.WebhookVerify Shopify webhook HMAC (X-Shopify-Hmac-Sha256)Compute and verify the base64 HMAC.