# Platform Plan

Control expiry and maintenance mode based on plan payment.

Developer

## Current Status

Auto-maintenance connected
Plan Status
–
–

Loading plan details...

## Extend Plan

After successful payment

In real deployment, you should verify payment (Paytm / Razorpay) on your billing system, then call these actions (via API or manually) to extend the plan.

## How expiry auto-maintenance works

Technical summary

- `app_settings.plan_expires_at` stores the plan end datetime.
- On every request, backend checks `plan_expires_at` in middleware.
- If `now > plan_expires_at`, platform goes into maintenance automatically.
- Developer role always bypasses maintenance, so you can still log in and fix / extend.
- Calling `/api/developer/extend` will push the expiry forward and disable maintenance mode.