Quickstart

Add recurring USDC payments to your app in minutes.

1) Include the SDK

<script src="/recur.js"></script>

2) Create a plan

POST /api/plans
{
  "name": "Pro",
  "priceUSD": 10,
  "interval": "monthly"
}

3) Trigger subscribe

Recur.subscribe({ planId: "pro-monthly" })

4) Webhooks

payments.succeeded
payments.failed
subscription.canceled

Use Base/Polygon testnet to demo while contracts are in audit.

Concepts

  • Allowance approval: user authorizes a monthly spend cap.
  • Auto-pull cadence via relayer/keeper.
  • Revoke flow: cancel by revoking allowance.
  • Cross-chain: Polygon/Base now; Solana (roadmap).