Implement Snap4ID backend trust - a Node endpoint that verifies App Store / Play receipts with @snap4id-sdk/purchase-verifier and unlocks the job with @snap4id-sdk/partner-api, plus the job.paid webhook. Use when the partner verifies purchases on its own backend.
Ships in snap4id. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
openssl genpkey -algorithm ed25519); the public half goes to Snap4ID, which returns a
key id. Read the private key and key id from the secret manager / environment, never from the repository.createPartnerClient({ baseUrl: 'https://snap4.id', partnerId, keyId, privateKey }) at start-up.allowed_environments: ["production"]) validated with PartnerConfigSchema at start-up.POST /purchases (behind the app's user authentication), body { jobId, paymentRef, receipt, price? }:
verifyReceipt({ receipt, payment_ref: paymentRef }, { config, policy: { deployment: 'production', acceptTestReceipts: false } }) → 400 { error: code } when not ok, nothing sent to Snap4ID;client.unlock(jobId, { payment_ref, platform, product_id, transaction_id, environment, ...choosePrice(purchase.storePrice, price) });200 { unlocked: true, orderCode }; isPartnerApiError(e, 'already_paid') → record a refund, answer
409 { error: 'already_paid' }; retryable codes (server_error, timeout, network) → 502, keep pending.onVerifyPurchase posts that body and throws AlreadyPaidError (from @snap4id-sdk/app-embed) on
409 already_paid; resolves only on 200.POST /webhooks/snap4id on the raw body: client.verifyWebhook({ headers, rawBody }); 401 on failure,
503 on keys_unavailable, never 410; dedupe on event.event_id; answer 2xx fast, copy files after with
getJob.expires_at.already_paid → refund recorded, webhook with valid / tampered
signature and a duplicate event_id.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/snap4id:snap4id-verify-receipts-backendfrom snap4id
npx claudepluginhub lradomski10m/snap4id-sdk --plugin snap4id4 skills in this plugin
/snap4id-debug-stuck-purchaseDiagnose a Snap4ID embed purchase that does not unlock or a photo that never arrives - error codes, binding, environment, trust mode, recovery. Use when a user paid but has no photo, or onError reports unlock problems./snap4id-integrate-embedAdd the Snap4ID photo flow to a React Native / Expo app with @snap4id-sdk/app-embed (client, flow screen, resume, plugins, delivery). Use when asked to integrate, embed or add Snap4ID ID photos to an app./snap4id-try-exampleRun the Snap4ID SDK's example partner app on an iOS simulator or Android emulator against the local fake Snap4ID page with the fake store (no account, no purchases), then point to onboarding for going live. Use when asked to try, demo or test Snap4ID locally, or before a partner id exists.