Auto-recharge

Top up automatically before your balance hits zero.

Auto-recharge is a sensitive feature: it lets HiWay charge a stored card on your behalf, off-session, without you clicking anything. Every safeguard is non-negotiable.

How it works

  1. You enable it from Dashboard → Billing → Auto-recharge.
  2. You add a card via Stripe Checkout (setup mode — the card is saved without a charge).
  3. You set a trigger threshold (e.g. $5) and a recharge amount (between $10 and $1,000).
  4. When your balance drops below the threshold after any request, HiWay fires an off-session PaymentIntent against your saved card.
  5. On success, the credits are added to your balance and a Slack notification fires. Your account never goes empty.
  6. On failure (card declined, expired, etc.), the recharge is logged as failed, you're notified, and after 3 consecutive failures auto-recharge is auto-disabled until you fix the card.

Safety guarantees

  • Atomic Redis lock — even if 100 requests trigger a recharge at the same millisecond, only one fires.
  • 5-minute cooldown between successful recharges — no thundering herd, no double top-up.
  • Hard limits — single recharge amount is capped at $1,000. Above, you contact sales.
  • Auto-disable after 3 failures — protects you from a runaway charge attempt loop.
  • Owner-only — only you can enable, disable, or change your auto-recharge config. Admins cannot.
  • Slack notification on every fire — you see every charge in real time.

Disable any time

Click Remove card under Auto-recharge to wipe the saved payment method and disable the feature in one click. Future credits will only come from manual top-ups.