Command Palette

Search for a command to run...

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

Debug an OpenReceive payment

БесплатноБез исполняемых скриптовНе проверен

Diagnose a failing OpenReceive integration. Use when an OpenReceive-powered checkout misbehaves: the server refuses to boot, checkout routes return 403, 404…

openreceiveот openreceive110 установок в других каталогах

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

Debug an OpenReceive payment

Work top-down: configuration, then the request, then settlement. Every guide URL below is raw markdown — fetch it when the step needs it.

1. Run the doctor first

npx openreceive doctor                     # Node version, NWC_URI, swap config, wallet probe
npx openreceive doctor --db <db>           # + are openreceive_payments/openreceive_meta migrated?
npx openreceive doctor --url http://localhost:3000   # + are the routes actually mounted?
npx openreceive doctor --scan-build <dir>  # alone, after a production build: did a code reach it?
bin/rails openreceive:doctor               # Rails
manage.py openreceive_doctor               # Django
openreceive doctor --app main:app           # FastAPI
php artisan openreceive:doctor             # Laravel
wp openreceive doctor                      # WordPress
php bin/doctor                             # plain PHP: host script calling $engine->doctor()

Each failing line states its own fix. npx openreceive debug-report prints the same diagnostics redacted, always exit 0 — safe to share.

2. Boot failures

Symptom Cause and fix
MISSING_NWC / "needs a receive-only NWC code" NWC_URI is not in the server process env. A .env file alone is not enough — something must load it (dotenv/config, Next auto-load). Get a code: https://openreceive.org/get_a_nwc_code_to_receive_payments
INVALID_NWC / "not a valid NWC code" The value is malformed (must be nostr+walletconnect:// with 64-hex pubkey and secret, ≥1 wss relay). Re-copy it from the wallet.
"NOT receive-only" / spend methods advertised The wallet minted a spend-capable code; OpenReceive fails closed because a leak would drain the wallet. Mint a receive-only code. Overriding (allowSpendCapableWallet / OPENRECEIVE_ALLOW_SPEND_CAPABLE_NWC) is a last resort.
Wallet preflight failed (methods/encryption) The wallet must advertise make_invoice + list_transactions and NIP-04 or NIP-44 v2. Use a compatible wallet.
"The openreceive_meta table does not exist" / raw no such table: openreceive_payments The migration was never applied. Node: npx openreceive scaffold payments --orm <yours>, then run the emitted migration through the app's normal workflow. Rails: bin/rails generate openreceive:install, then bin/rails db:migrate. Django: manage.py openreceive_install <app> && manage.py migrate. FastAPI: openreceive scaffold payments --alembic --dialect <db> (or --sql), then apply through the host workflow. Laravel: php artisan openreceive:install && php artisan migrate. Plain PHP: apply OpenReceive\Storage\PaymentsSchema::statements($dialect) through the host workflow. WordPress: check plugin activation/upgrades applied the tables. https://openreceive.org/guides/storage.md
"requires amountFor / onPaid / authorize / host" The factory is missing a required hook — see the host contract in https://openreceive.org/guides/api-reference.md

3. Request-time errors from the routes

Status Meaning Where to look
403 FORBIDDEN Your own authorize hook denied it, or the request looked cross-site. Check the session/cookie actually reaches the checkout routes. https://openreceive.org/guides/authorization.md
Never 403s — any visitor can mint, poll, or refund for any reference The opposite failure: on Rails the generated config.authorize = OpenReceive::ALLOW_ALL_AUTHORIZE placeholder is still installed (the engine warns at boot; bin/rails openreceive:doctor reports it). Replace it with the app's real ownership check. https://openreceive.org/guides/authorization.md
404 NOT_FOUND amountFor returned null (unknown reference), or the payment_hash does not belong to that reference.
409 CONFLICT Normal state, not a bug: the reference already settled, or an unpaid checkout for that method is already live. Show it as order state; never retry-loop.
503 retryable The host hook failed while persisting the attempt (instructions withheld), or the wallet is unavailable. Read the server log for the underlying error.
Framework 404 / HTML error page The router is not mounted, or mounted at a different prefix than the UI's prefix prop. doctor --url distinguishes these.

4. Paid but never settles

  • Settlement is opportunistic: any OpenReceive request runs one reconcile pass through a durable gate (min 3s between wallet scans, stretched by invoice age). A quiet server settles on the next request — or run the optional notifications worker: Rails bin/rails openreceive:notifications, Django manage.py openreceive_notifications, FastAPI openreceive notifications --app main:app, Laravel php artisan openreceive:notifications, WordPress wp openreceive notifications, or plain PHP's host script php bin/notifications. Node hosts run their separate worker using the notifications API. No web-process timer is missing.
  • An unpaid att
Полный SKILL.md на ClawHub

Установить Debug an OpenReceive payment в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл Debug an OpenReceive payment?

Diagnose a failing OpenReceive integration. Use when an OpenReceive-powered checkout misbehaves: the server refuses to boot, checkout routes return 403, 404, 409, or 5xx, a paid invoice never settles, a swap refund seems unreachable, or the checkout UI renders nothing.

Как установить скилл Debug an OpenReceive payment?

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

Скилл Debug an OpenReceive payment запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Debug an OpenReceive payment с