Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Billing

replybots uses strict prepaid credits:

  • 1 credit = 1 reply (whether static or AI-generated).
  • No subscriptions, no free trials — accounts start with 0 credits and top up via Razorpay Orders.
  • No charge on held or failed replies — if the risk gate withholds a draft or AI generation / delivery fails before sending, no credit is deducted.
  • Purchased credits do not expire.

Payment Flow

  1. Order creation (POST /api/billing/order) — creates a Razorpay Order for the requested credit count (between minCredits and maxCredits) in the tenant’s currency (INR or USD).
  2. Checkout & verification — the Elm dashboard opens Razorpay Checkout (public/boot.js) and posts the payment signature to /api/billing/verify.
  3. Authoritative webhook (POST /webhook/razorpay, src/billing/webhook.rs) — verifies X-Razorpay-Signature (HMAC-SHA256) and fails closed if RAZORPAY_WEBHOOK_SECRET is unset or empty. Credits are recorded idempotently in payments and tenant_billing.