Command Palette

Search for a command to run...

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

infinite-giving-webhooks

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

Receive and verify Infinite Giving webhooks. Use when setting up Infinite Giving partner webhook handlers, debugging X-IG-Signature verification, or handling…

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

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

Infinite Giving Webhooks

Infinite Giving (infinitegiving.com) is a non-cash donation platform (stock, crypto, DAF) for nonprofits. Integration partners receive a webhook whenever a donation is created or updated for a connected organization.

Webhooks are for integration partners: Infinite Giving configures your webhook URL at partner kickoff and shares the webhook signing secret out-of-band, separately for sandbox and production.

When to Use This Skill

  • How do I receive Infinite Giving webhooks?
  • How do I verify the X-IG-Signature header?
  • Why is my Infinite Giving webhook signature verification failing?
  • How do I handle donation:created and donation:updated events?
  • How do I detect that a stock or crypto donation completed?

Verification (core)

Infinite Giving signs {X-IG-Timestamp}.{raw body} with HMAC-SHA256 and sends the lowercase hex digest in X-IG-Signature as sha256=<hex>. The key is your signing secret used as plain UTF-8 (not hex- or base64-decoded). Verify the raw bytes before parsing any JSON.

const crypto = require('crypto');

function verifyInfiniteGiving(rawBody, timestamp, signature, secret) { // rawBody: Buffer
  if (!timestamp || !signature || !secret) return false;
  const hex = signature.replace(/^sha256=/, '').toLowerCase(); // prefix optional
  if (!/^[0-9a-f]{64}$/.test(hex)) return false;               // validate before decoding
  const expected = crypto.createHmac('sha256', secret)
    .update(Buffer.concat([Buffer.from(timestamp, 'latin1'), Buffer.from('.'), rawBody]))
    .digest();
  return crypto.timingSafeEqual(expected, Buffer.from(hex, 'hex'));
}
// Missing, malformed, or mismatched signature -> respond 401
import hashlib, hmac, re

def verify_infinite_giving(raw_body: bytes, timestamp: str, signature: str, secret: str) -> bool:
    if not timestamp or not signature or not secret:
        return False
    digest = signature.removeprefix("sha256=").lower()
    if not re.fullmatch(r"[0-9a-f]{64}", digest):
        return False
    signed = timestamp.encode("latin-1") + b"." + raw_body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).digest()
    return hmac.compare_digest(expected, bytes.fromhex(digest))

Key points:

  • Raw body. Never JSON.parse/JSON.stringify (or decode and re-encode) before verifying; the signature covers the exact bytes received. In Express use express.raw({ type: '*/*' }).
  • Header value as-is. Use the X-IG-Timestamp value exactly as received (Unix seconds); don't trim or reformat it.
  • Prefix optional. Accept X-IG-Signature with or without the sha256= prefix; compare hex case-insensitively.
  • No timestamp window by default. Hookdeck replays resend the original headers, and Infinite Giving doesn't say whether its retries refresh the timestamp, so rejecting old timestamps can drop legitimate deliveries. The examples offer an opt-in INFINITE_GIVING_WEBHOOK_TOLERANCE_SECONDS (unset or 0 = off) that checks X-IG-Timestamp (Unix seconds) against the clock.

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

Request Format

POST with a JSON envelope. Dispatch on the body's event field:

Header Description
X-IG-Signature sha256=<hex> HMAC-SHA256 signature
X-IG-Timestamp Unix timestamp (seconds) used in the signature
X-IG-Event Event type, e.g. donation:created
X-IG-Webhook-Id Unique delivery id (same as the envelope id); use it to dedupe
{ "id": "A1B2C3D4E", "event": "donation:created", "created_at": "2026-06-23T21:00:00.000Z", "data": { "id": "DON1234567", "object": "donation", "status": "pledged" } }

Common Event Types

Event Triggered When Common Use Cases
donation:created A donation record is created Record a pledged gift, notify the nonprofit
donation:updated Status or material fields change (processing, complete, failed, canceled) Mark a gift complete, reconcile the sale proceeds

There is no donation:completed event: completion arrives as donation:updated with data.status set to "complete". Full details in references/overview.md.

Delivery

Up to 5 attempts: the first delivery plus four retries about 1m, 5m, 30m, and 2h apart. The docs state no timeout, so respond with a 2xx quickly and process asynchronously. Make handlers idempotent (key on X-IG-Webhook-Id / envelope id).

Environment Variables

INFINITE_GIVING_WEBHOOK_SECRET=your_partner_signing_secret   # given at partner kickoff, used as UTF-8
INFINITE_GIVING_WEBHOOK_TOLERANCE_SECONDS=0                  # optional, 0/unset = no timestamp check

Local Development

npx hookdeck-cli listen 3000 infinite-giving --path /webhooks/infinite-gi
Полный SKILL.md на GitHub

Установить infinite-giving-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/infinite-giving/route.tsexamples/nextjs/lib/verify.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

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

Receive and verify Infinite Giving webhooks. Use when setting up Infinite Giving partner webhook handlers, debugging X-IG-Signature verification, or handling donation:created and donation:updated events for stock, crypto, and DAF donations.

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

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

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

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

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

Сравнить infinite-giving-webhooks с