Data
Result direction
Proration mode
Collection mode
Status
Scheduled change
Install
pnpm dlx shadcn@latest add @paddle/plan-change-previewyarn dlx shadcn@latest add @paddle/plan-change-previewnpx shadcn@latest add @paddle/plan-change-previewProps
preview-subscription-update endpoint, passed through with minimal transformation. Pass undefined to render the skeleton loading state. PATCH /subscriptions/{id}. What it does
A compact summary of a subscription plan change. Shows the customer's current plan, their new plan, and the financial impact (charge, credit, or no-op) in a compact card.
It takes into account subscription states that may restrict the customer's billing options, like:
- When a subscription is scheduled to be paused or canceled
- When a subscription is in a trial period
When to use
- You're building an upgrade, downgrade, or plan change page and want to present a clear, scannable preview of the change.
- You want to surface proration behavior ("$13.33 today, $29.99 on Feb 1") in a legible way.
For full invoice-style detail, use the plan change breakdown component instead. Pair the two for optimal UX, presenting the compact preview initially and letting customers expand to see the full breakdown.