# Plan Change block

> Subscription Plan Change Wizard with Live Proration Preview

Stepped wizard to move a subscription to a new tier with a proration rail recomputing credit, charge, and due-today as plan and timing change. ReUI Stepper, Badge, Alert; shadcn Card, Button, RadioGroup, Item, Avatar. For plan upgrades, downgrades.

- Type: Pro block
- Category: [Billing](https://web.dev.reui.io/blocks/solutions/billing.md)
- Page: https://web.dev.reui.io/blocks/solutions/billing/solution-billing-8
- MCP: `get_block("solution-billing-8")`
- Built with: Alert, Avatar, Badge, Button, Card, Field, Item, Radio Group, Stepper
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

Per seat tier radio cards and an apply now or at renewal choice, with an upgrade or downgrade badge and credit carried to the next invoice

## Agent notes

- Replace `SUBSCRIPTION`, `PLAN_OPTIONS` and `TIMING_OPTIONS` in data.ts; the account, 20 seats and the renewal date are constants
- `getProration` multiplies price by seats and days remaining over `cycleDays`, and returns zeros at renewal; swap in your billing quote
- `handlePrimaryAction` only sets `confirmed` and shows the Plan change scheduled alert, with no toast or request behind Confirm change

## When not to use

- Buying prepaid credits through a stepped purchase flow with auto top-up: use [AI Credit Checkout](https://web.dev.reui.io/blocks/ecommerce/checkout/checkout-3.md) (`get_block("checkout-3")`)
- Editing the plan catalog itself rather than moving one subscription: use [Plan Catalog](https://web.dev.reui.io/blocks/solutions/billing/solution-billing-2.md) (`get_block("solution-billing-2")`)

## Install

```bash
npx shadcn@latest add @reui/solution-billing-8
```

## About Billing blocks

### When to use

- A back office for billing operators: the invoice ledger, subscriptions, a dunning queue and metered usage
- Plan and discount admin: editing the plan catalog and coupon rules, or moving a subscription to a new tier
- One customer's billing account seen by staff, or an invoice built line by line and then sent

### When not to use

- A public page where visitors compare plan tiers and pick one before signing up: use the [Pricing blocks](https://web.dev.reui.io/blocks/marketing/pricing.md)
- A signed in customer's own settings page showing their plan, usage and invoices: use the [Profile blocks](https://web.dev.reui.io/blocks/application/profile.md)
- A stepped intake flow with no money in it, such as vendor onboarding or team invites: use the [Wizard blocks](https://web.dev.reui.io/blocks/application/wizard.md)

### Agent notes

- Each block sets a `min-h-svh` wrapper with `bg-background`, padding and a max width in page.tsx or its root component; drop it inside an app shell
- No block calls an API: sends, retries, saves and exports update `useState` or fire a sonner `toast`; post to your billing backend from those handlers

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
