Theo loại hình kinh doanh

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 bước2 phút đọcsaasrecurringwebhooks
Bước 11 / 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.

Bước 22 / 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.

Bước 33 / 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.

Bước 44 / 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.

Bước 55 / 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.

Bước 66 / 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

Quay lại: SaaS & gói đăng ký
Có điều gì sai hoặc lỗi thời ở đây? Hãy báo cho chúng tôi — và xem tài liệu tham chiếu API, được tạo từ bản đặc tả và luôn là căn cứ cuối cùng.