10 min read
|
Published
|
Updated

Recurring Crypto Payments: How to Build and Run Them

Recurring crypto payments: escrow, signed pulls and static-address billing compared, plus allowance standards, webhooks, reconciliation and US 1099-DA basics.

Chapters
C
Chaingateway Team
Blockchain Experts

Reviewed by Maurice Sobiera

Isometric recurring payment architecture illustration

Recurring crypto payments are subscription-style billing in which a customer pays a merchant in cryptocurrency on a schedule. Blockchains have no native subscription feature. You build it from a payment to a static address, a pre-funded escrow contract or a signed pull payment. Stablecoins are the usual asset, because invoices need a stable value.

Which pattern should you build?

Stripe’s guide on recurring crypto payments describes the main patterns. Since many blockchains do not support native timers, recurring payments rely on offchain triggers and automation layers. The guide names Chainlink Automation and Gelato for prompting contract execution, and Superfluid and Sablier for continuous payment streams.

PatternWho triggers the paymentWhere the funds sitWhat you need
Static-address billingThe customer, each periodWith the customer until they payAddress per customer, webhook, reconciliation
Prepaid escrowA scheduler or the contractIn a smart contractContract, offchain trigger, audit
Signed pull paymentsThe merchant, each cycleWith the customer until the pullContract that checks signatures, scheduler
StreamingThe contract, continuouslyIn a streaming contractContract, batching of settlement

Static-address billing needs no contract and is the simplest to run. Chaingateway bills its own subscriptions this way: each customer has a static payment address, the amount is flexible, and the subscription end date moves with the amount received. The New Payment Flow release describes it. The cost is that the customer has to act every period, so renewal depends on a reminder and not on automation.

Escrow and pull payments remove that manual step. They also bring contract risk, scheduler uptime and, for pulls, the question of how the customer revokes permission.

How does static-address billing work with webhooks?

You create one address per customer, register a webhook for it, and credit the subscription when a matching payment arrives. The webhook below watches a Tron address for USDT. The reference field carries your subscription ID, so the notification can be matched to the account:

Terminal window
curl -X POST https://app.chaingateway.io/api/v2/tron/webhooks \
-H "Authorization: Bearer $CHAINGATEWAY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"to": "TWrTTVizHkF3LxTiWE9vCnhWC7CBpNXe22",
"contractaddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"type": "TRC20",
"url": "https://billing.example.com/hooks/payment",
"reference": "sub_20417"
}'

A notification carries the txid, from, to, contractaddress, amount, blocknumber and the webhook_id. Your handler should do five things:

  1. Verify the X-Signature header, which signs the txid once you have set a personal secret.
  2. Look up the subscription through the webhook_id or the address.
  3. Reject a txid that you have seen before.
  4. Compare amount and the token with the invoice, and decide what to do with underpayments, overpayments and wrong tokens.
  5. Extend the subscription period and answer with a 2xx status.

Check the unit of amount with a testnet payment before you write the pricing logic. Webhooks are not retried automatically. A failed notification appears in GET /api/v2/tron/webhooks/notifications/failed, and you resend it with the retry endpoint. A nightly job that compares expected and received payments catches the rest. The webhook guide covers idempotency and testing in more detail.

Which token and network should you choose?

Use a major stablecoin, and choose the network by fees and by where your customers already hold funds. A $29 monthly invoice should still be worth about $29 when it settles. If you ever accept a volatile asset, convert it at receipt and record the conversion separately from the invoice.

Layer 2 networks exist to scale Ethereum, and ethereum.org lists low fees among their benefits. Tron hosts the largest TRC-20 USDT network, according to the Tron documentation. Chaingateway supports Ethereum, Arbitrum, Polygon, BNB Smart Chain and Tron for this purpose, among others. Each network has its own fee model, so test a full payment and a refund on the network’s testnet first, using the header X-Network: testnet.

What do allowance standards change for pull payments?

They limit how long and how much a merchant contract may pull. A plain ERC-20 approval can be unlimited and permanent, so a compromised merchant contract can drain the customer’s whole balance. Three standards address parts of this. Their status differs, so check it before you depend on one:

StandardWhat it addsStatus in the EIP repository (5 November 2026)
ERC-2612Permit: approvals by signed message, without a separate approval transactionFinal
ERC-5827Auto-renewable allowance extensionStagnant
ERC-8255Expiring token approvals: approvals expire after a bounded duration by defaultDraft

Only a token that implements a standard supports it. Check each token you accept, and design the contract so that it also works with a plain approval of a bounded amount. Ask the customer for an amount that covers a few cycles rather than an unlimited approval.

How do you keep recurring billing secure?

Treat revocation, keys and webhooks as the three risks. Revocation: if a customer revokes an allowance, your system should learn about it before the next pull fails, so watch approval events for your spender address. Keys: use a multisig wallet for treasury funds, and keep scheduler keys separate from keys that can reach the treasury. Webhooks: verify every signature and deduplicate, as in the section above.

Customers can also be targeted by impersonation. Publish your payment addresses on one static page and tell customers never to send funds to an address from an email or chat message. Legitimate billing flows show the address inside your own application.

What tax reporting rules should you know about?

The US IRS requires brokers to report digital asset sales on Form 1099-DA, and that can include some payment processors. The IRS digital assets page states that reporting applies to transactions on or after 1 January 2025 and that the regulations phase in over time. It lists processors of digital asset payments (PDAPs) among the brokers covered, and it applies to brokers that take possession of the assets being sold. Whether your service counts as a broker depends on custody and on how funds flow, so ask a tax adviser. This article is not tax or legal advice.

For bookkeeping, record three amounts for each payment: the invoice amount in the billing currency, the crypto amount received, and the value in your reporting currency at the time of receipt. Keep the transaction ID with each record.

What does a sensible pilot look like?

Start with one network, one stablecoin and one customer group. Build static-address billing first, because it has the fewest moving parts. Measure two numbers from the first payment: the share of invoices paid on time, and the minutes of manual reconciliation per cycle. Add escrow or pull payments only if the manual renewal step costs you customers.

You can create the addresses, webhooks and payouts for that pilot through the Blockchain API and Chaingateway Webhooks. The OpenAPI file has no endpoint for approvals, scheduling or arbitrary contract calls, so pull payments and escrow need your own contract and scheduler. Plans start at €49 per month, and the 7-day free trial needs no card and no KYC. See the pricing page.

Sources

Frequently asked questions

The IRS does not monitor wallets directly. It receives reports from brokers that file Form 1099-DA for digital asset transactions starting with 2025. If your business or a platform you use qualifies as a broker, your transactions appear in those filings.

Customers must either act each period or grant a permission that a contract can use. Gas costs vary by network, and tokens other than stablecoins carry price risk. Tax and compliance work adds overhead, particularly for processors.

A legitimate recurring billing flow never asks you to send funds manually to an address from an email or chat message. Compare any address with the one published on the merchant’s own site before you pay or approve anything.

It depends on the customer. Static-address billing with webhooks is the simplest to run and needs no contract. Pull payments suit customers who want automation, and they need a reviewed contract and a scheduler.

How we write these articles

Ready to build this yourself? Get your API key — 7-day trial, no card required — or see the Blockchain API for the full endpoint reference.

C
Chaingateway Team
Blockchain Experts

The Chaingateway team is dedicated to simplifying blockchain integration for developers worldwide.