Skip to content
Skills Library
Finance & accounting · Tool integration

ryft-webhooks

/ryft-webhooks

Receive and verify Ryft webhooks. Use when configuring Ryft webhook endpoints, debugging Signature header verification, or handling PaymentSession.captured, Payout.created, Account.updated.

Licence
MIT
Last repository change
13.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
28
Scripts
8
HTML comments
0
URLs in SKILL.md
12
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 8 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: examples/express/src/index.js, examples/express/test/webhook.test.js, examples/fastapi/main.py, examples/fastapi/test_webhook.py, examples/nextjs/app/lib/webhook.ts, examples/nextjs/app/webhooks/ryft/route.ts, examples/nextjs/test/webhook.test.ts, examples/nextjs/vitest.config.ts

What it does and when to use it

Receive and verify Ryft webhooks. Use when configuring Ryft webhook endpoints, debugging Signature header verification, or handling PaymentSession.captured, Payout.created, Account.updated.

Original author description

Receive and verify Ryft webhooks. Use when configuring Ryft webhook endpoints, debugging Signature header verification, or handling PaymentSession.captured, Payout.created, Account.updated.

How it works

  1. When to Use This Skill
  2. Setup
  3. Verification (core)
  4. Event Handling
  5. Local Development
  6. Resources
  7. Recommended: webhook-handler-patterns
  8. Related Skills
Original SKILL.md headings · 68 lines, 358 words
SKILL.md preview
---
name: ryft-webhooks
description: >
  Receive and verify Ryft webhooks. Use when configuring Ryft webhook
  endpoints, debugging Signature header verification, or handling PaymentSession.captured, Payout.created, Account.updated.
license: MIT
metadata:
  author: hookdeck
  version: "0.1.0"
  repository: https://github.com/hookdeck/webhook-skills
---

# Ryft Webhooks

Receive Ryft payment-session, payout and account notifications.

## When to Use This Skill

- Configure a receiver for Ryft webhook deliveries.
- Diagnose `signature` verification failures.
- Handle `PaymentSession.captured`, `Payout.created`, `Account.updated`.

## Setup

Use the Ryft Portal profile menu > Developer > Webhooks, or the Webhook API, to register the endpoint and obtain its secret. Configure test and live credentials separately.

Set `RYFT_WEBHOOK_SECRET` in the server environment. Read [setup](references/setup.md) before enabling delivery.

## Verification (core)

`signature` contains a bare hex digest over the raw body. Use HMAC-SHA256 with the secret's UTF-8 bytes. Verify the original bytes before parsing JSON. Validate the digest format, then compare equal-length buffers in constant time.

After extracting the documented digest and constructing `message` as described in [verification](references/verification.md), the comparison is:

```javascript
const expected = crypto.createHmac('sha256', secret).update(message).digest();
if (digest.length !== 64 || !/^[0-9a-fA-F]{64}$/.test(digest)) return false;
const received = Buffer.from(digest, 'hex');
return received.length === expected.length && crypto.timingSafeEqual(received, expected);
```

No timestamp is included in the signed message. These examples do not invent an age check from unsigned fields.

Complete handlers and tests: [Express](examples/express/), [Next.js](examples/nextjs/), [FastAPI](examples/fastapi/).

## Event Handling

Read eventType from the envelope; data contains the affected resource. Verify the generic Signature header as a bare hex digest. The guide names HMAC-SHA256; Ryft's .NET SDK supplies the hex encoding detail. Its ASCII secret encoding agrees with UTF-8 for the supplied ASCII secrets.

Return 200 within 1.5 seconds. Ryft documents six attempts, separated by delays of 0, 1, 5, 10, 10 and 10 minutes. Queue durable work before acknowledging.

## Local Development

```bash
npx hookdeck-cli listen 3000 ryft --path /webhooks/ryft
```

Use port 8000 for FastAPI. The CLI provides a local tunnel and inspection UI; no account is required to start.

## Resources

- [Overview and event routing](references/overview.md)
- [Endpoint and secret setup](references/setup.md)
- [Verification and troubleshooting](references/verification.md)

## Recommended: webhook-handler-patterns

Use the patterns skill for [handler sequence](https://github.com/hookdeck/webhook-skills/blob/main/skills/webhook-handler-patterns/references/handler-sequence.md), [idempotency](https://github.com/hookdeck/webhook-skills/blob/main/skills/webhook-handler-patterns/references/idempotency.md), [error handling](https://github.com/hookdeck/webhook-skills/blob/main/skills/webhook-handler-patterns/references/error-handling.md) and [retry logic](https://github.com/hookdeck/webhook-skills/blob/main/skills/webhook-handler-patterns/references/retry-logic.md).

## Related Skills

- [stripe-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/stripe-webhooks): another HMAC receiver.
- [github-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/github-webhooks): another HMAC receiver.
- [shopify-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/shopify-webhooks): another HMAC receiver.
- [gitbook-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/gitbook-webhooks): another HMAC receiver.
- [preczn-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/preczn-webhooks): another HMAC receiver.
- [webhook-handler-patterns](https://github.com/hookdeck/webhook-skills/tree/main/skills/webhook-handler-patterns): delivery and processing patterns.
- [hookdeck-event-gateway](https://github.com/hookdeck/webhook-skills/tree/main/skills/hookdeck-event-gateway): managed delivery and inspection.
Files in this package (28)
  • SKILL.md 4 KB
  • examples/express/.env.example 1 KB
  • examples/express/README.md 1 KB
  • examples/express/package.json 1 KB
  • examples/express/published-vector.json 1 KB
  • examples/express/vector.json 1 KB
  • examples/express/src/index.js 3 KB
  • examples/express/test/webhook.test.js 6 KB
  • examples/fastapi/.env.example 1 KB
  • examples/fastapi/README.md 2 KB
  • examples/fastapi/main.py 2 KB
  • examples/fastapi/published-vector.json 1 KB
  • examples/fastapi/requirements.txt 1 KB
  • examples/fastapi/test_webhook.py 6 KB
  • examples/fastapi/vector.json 1 KB
  • examples/nextjs/.env.example 1 KB
  • examples/nextjs/README.md 1 KB
  • examples/nextjs/package.json 1 KB
  • examples/nextjs/published-vector.json 1 KB
  • examples/nextjs/tsconfig.json 1 KB
  • examples/nextjs/vector.json 1 KB
  • examples/nextjs/vitest.config.ts 1 KB
  • examples/nextjs/app/lib/webhook.ts 2 KB
  • examples/nextjs/app/webhooks/ryft/route.ts 1 KB
  • examples/nextjs/test/webhook.test.ts 7 KB
  • references/overview.md 2 KB
  • references/setup.md 1 KB
  • references/verification.md 3 KB

Versions

The database has no other skills named ryft-webhooks.

Database snapshot: 13.11.2026 · package version 3c59bd237a80 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100payt-webhooks
    Receive and verify Payt webhooks. Use when setting up a Payt webhook endpoint, debugging X-PAYT-SIGNATURE verification, or handling accounts-receivable events like invoice_created, invoice_paid, invoice_payment_created, case_created and bundled_reminder_sent.
  • 100paypercut-webhooks
    Receive and verify Paypercut webhooks. Use when setting up a Paypercut webhook endpoint, verifying the Paypercut-Signature header (HMAC-SHA256), debugging signature verification failures, or handling events like payment.succeeded, checkout_session.completed, payout.paid and account.updated.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.