按业务类型

Bill subscriptions in crypto

For SaaS and membership businesses. At the end you have recurring invoices with reminders, and a signed webhook that extends access when a customer pays. About 20 minutes.

6 个步骤阅读约 2 分钟saasrecurringwebhooks
第 1 步1 / 6

Create an API key for your billing server

Dashboard → API keys. “Shop” is typed into the New key label field and the Create key button is highlighted; below, the key list shows a key labelled Shop with only its prefix rcv_live_… visible.

Sign up, add your wallet under Payouts, then open API keys. Label a key after the service that will use it, e.g. Billing, and press Create key. Store it in your server's secret manager as RECEIVIFY_API_KEY.

Why: a labelled key per service can be revoked on its own, without taking the rest of your app down.

第 2 步2 / 6

Register your webhook endpoint

Dashboard → Webhooks → Endpoints: an input for a new endpoint URL with an Add endpoint button, and the registered endpoint https://app.example.com/webhooks/receivify highlighted in lime with Send test and Remove buttons.

Open Webhooks, paste your endpoint, e.g. https://your-app.com/webhooks/receivify, and press Add endpoint. Every invoice event is POSTed there, signed with your webhook secret.

Verify the signature in one line with an SDK, or test your code with the webhook signature tester.

第 3 步3 / 6

Create a recurring invoice for a customer

Dashboard → Recurring → New recurring invoice, filled in: title “Pro plan — Kestrel”, coin, every 30 days, amount 49 USD, customer email accounts@kestrel.example.com and name Kim Lee; the Create recurring invoice button is highlighted in lime.

Open Recurring. Fill in the title (Pro plan — Kestrel), the coin, Every (days) (e.g. 30), the amount in your currency and, optionally, the customer's email and name, then press Create recurring invoice.

Prefer code? Create a plain invoice per cycle from your server:

curl -X POST https://receivify.io/api/v1/invoices \
  -H "Authorization: Bearer $RECEIVIFY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: sub-8841-2026-10" \
  -d '{"amount_fiat":"29.00","currency":"USD","asset":"usdt","reference":"sub-8841-2026-10","metadata":{"customer_id":"cus_8841"}}'

Why: crypto has no pull payments. Each cycle makes a fresh invoice and reminds the customer; nothing is ever debited silently.

第 4 步4 / 6

Send the customer their renewal link

Dashboard → Recurring list: “Pro plan — Northbeam” at 49 USD and “Starter plan — Acme Co” at 19 USD, both every 30 days, with next dates and reminders; the Renewal link button for Acme Co is highlighted in lime.

Each plan is listed with its next due date and reminders. Renewal link copies a link the customer can always use to pay the current cycle. Put it in your billing emails or your app's billing page.

第 5 步5 / 6

Watch renewals get paid

Dashboard → Invoices filtered by “sub-”: the invoice sub-acme-starter for 19 USD in USDC, status swept, highlighted in lime.

Every cycle appears under Invoices with its own reference. Search for your prefix (here sub-) to see a customer's history.

第 6 步6 / 6

Done — extend access on invoice.paid

Dashboard → Webhooks → Delivery log: events invoice.confirming and invoice.paid, each delivered on the first attempt, with a Replay button; an invoice.paid row is highlighted in lime.

When a renewal is paid your endpoint receives invoice.paid. Extend the customer's access there, and ignore any sequence you have already handled. That is the whole integration.

The Delivery log in Webhooks shows every attempt and its response, and Replay re-sends one if your server was down.

Related: SaaS & subscriptions · Accept your first crypto payment · SDKs · API reference

返回:SaaS 与订阅
这里有错误或内容过时?告诉我们——并查阅API 参考,它由规范生成,始终以它为准。