Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

justt-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify Justt webhooks, which follow the Standard Webhooks specification. Use when setting up a Justt chargeback webhook endpoint, getting the…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Justt Webhooks

Justt manages chargebacks and automates disputes for merchants. Its webhooks report chargeback, pre-chargeback alert and CRM-subscription-cancellation events as a signed JSON POST to each endpoint you add in the Justt webhooks dashboard. Signatures follow Standard Webhooks, so each delivery carries webhook-id, webhook-timestamp and webhook-signature headers. Webhooks are not available to every Justt customer yet. The dashboard, message ids and retry/recovery tooling are Svix's.

When to Use This Skill

  • How do I receive Justt webhooks?
  • How do I verify a Justt webhook signature (webhook-signature)?
  • Where do I find my Justt webhook signing secret (whsec_...)?
  • How do I handle chargeback.created, chargeback.status.updated or pre_chargeback_alert.received events?
  • Why is my Justt webhook verification failing, or failing only on retries and replays?

Verification (core)

Header Value
webhook-id msg_...; identifies the message and is stable across retries. Your idempotency key (the body has no event id)
webhook-timestamp Unix seconds
webhook-signature One or more space-separated v1,<base64> entries

Signed content is {webhook-id}.{webhook-timestamp}.{raw body}, HMAC-SHA256, base64 output. The key is the base64-decoded part of the whsec_... secret after the prefix. Compare against every v1, entry; ignore other versions. If webhook-id is absent, read svix-id, svix-timestamp and svix-signature instead. The examples use the standardwebhooks library (npm and PyPI):

const { Webhook } = require('standardwebhooks');

// rawBody: exact request body (Buffer or string), NOT re-serialised JSON
function verifyJustt(rawBody, headers, secret = process.env.JUSTT_WEBHOOK_SECRET) {
  const p = headers['webhook-id'] ? 'webhook' : 'svix'; // fall back to the svix-* names
  new Webhook(secret).verify(rawBody, {
    'webhook-id': headers[`${p}-id`],
    'webhook-timestamp': headers[`${p}-timestamp`],
    'webhook-signature': headers[`${p}-signature`],
  }, { jsonParse: false }); // throws on a bad signature or stale timestamp → respond 401
}

The library always enforces a fixed 5-minute timestamp window. Hookdeck retries and replays resend the original webhook-timestamp, so the library rejects them once they are more than 5 minutes old. If you receive through Hookdeck and need late retries to pass, use the manual verifier in references/verification.md, which can drop or widen the window. In Express, read the body with express.raw({ type: '*/*' }) so any content type verifies, and parse JSON only after the check.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Event Type and Payload

Every body is the same envelope, and the event name is the top-level type:

{
  "type": "chargeback.created",
  "timestamp": "2022-03-15T09:39:24.514Z",
  "data": { "id": "04318fb0-e4ff-4712-972e-4db99b3fb23c", "chargebackId": "QRZ54SXB4K6TF232", "psp": "stripe", "status": "waiting_for_data" }
}

timestamp is when the event occurred (ISO 8601). data is the event-specific object. The signature page's code sample uses a ping body with event_type instead; that is a sample, not one of the reference payloads, so route on type.

Common Event Types

Event Fired when
chargeback.created A new chargeback is received from a connected PSP
chargeback.updated A chargeback is updated
chargeback.status.updated A chargeback status update is received
chargeback.evidence.submitted Evidence is submitted to the PSP (data.status is succeeded or failed)
chargeback.accepted A chargeback acceptance is confirmed by the PSP (data.status is succeeded or failed)
pre_chargeback_alert.received A pre-chargeback alert arrives from CDRN, RDR or Ethoca
pre_chargeback_alert.refund.succeeded The transaction linked to a refunded alert was refunded through the PSP
pre_chargeback_alert.refund.failed Processing a refund alert failed
pre_chargeback_alert.transaction_matched An alert was matched to its transaction (opt-in, enabled by Justt per account)
subscription.cancel_immediately.success A CRM subscription (for example Chargebee or Recurly) was cancelled after a refund
subscription.cancel_immediately.failed That cancellation failed (data.failureCode, data.failureReason)

These 11 are the documented events, and the examples route all of them (the list may not be exhaustive: ignore types you don't recognise). See references/overview.md.

Delivery Semantics

Return a 2xx within 15 seconds (the reference spec says 3

Полный SKILL.md на GitHub

Установить justt-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/justt/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл justt-webhooks?

Receive and verify Justt webhooks, which follow the Standard Webhooks specification. Use when setting up a Justt chargeback webhook endpoint, getting the whsec_ signing secret, debugging webhook-id / webhook-timestamp / webhook-signature verification, or handling events like chargeback.created, chargeback.status.updated, pre_chargeback_alert.received and subscription.cancel_immediately.failed.

Как установить скилл justt-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл justt-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить justt-webhooks с