04 · Plan changes, agents, payment methods and re-authorization (14 Oct 2026)

04 · Plan changes, agents, payment methods and re-authorization (14 Oct 2026) An architecture diagram generated by Archify. Upgrade modal · shows the server's price · Architecture component Upgrade modal shows the server's price upgradeSubscription · status rules, plan checks · Architecture component upgradeSubscription status rules, plan checks quotePlanChange · what the customer pays · Architecture component quotePlanChange what the customer pays Agents to keep · exactly the new count · Architecture component Agents to keep exactly the new count Razorpay ceiling · proration or new price · Architecture component Razorpay ceiling proration or new price Charge now · card on file, min 0.5 · Architecture component Charge now card on file, min 0.5 Plan applied · invoice, payment, email · Architecture component Plan applied invoice, payment, email upgrade-preview · same quote, read only · Architecture component upgrade-preview same quote, read only Trial or CANCELLED · ACTIVE once paid · Architecture component Trial or CANCELLED ACTIVE once paid Downgrade scheduled · applied at renewal · Architecture component Downgrade scheduled applied at renewal Agents marked · or recorded until paid · Architecture component Agents marked or recorded until paid Razorpay popup · charge + new mandate · Architecture component Razorpay popup charge + new mandate Pending charge · applied by webhook · Architecture component Pending charge applied by webhook Agents removed · admin emailed to remove · Architecture component Agents removed admin emailed to remove Red payment box · PAST_DUE, PENDING_REAUTH · Architecture component Red payment box PAST_DUE, PENDING_REAUTH setup-payment-method · PAST_DUE, PENDING_REAUTH · Architecture component setup-payment-method PAST_DUE, PENDING_REAUTH Recovery amount · pushed or locked, less discount · Architecture component Recovery amount pushed or locked, less discount New setup session · Razorpay: full cycle charge · Architecture component New setup session Razorpay: full cycle charge Payment methods · list, default, delete · Architecture component Payment methods list, default, delete Token revoked · Razorpay token.cancelled · Architecture component Token revoked Razorpay token.cancelled Re-authorize Mandate · Razorpay recovery action · Architecture component Re-authorize Mandate Razorpay recovery action No card on file · first card added = default · Architecture component No card on file first card added = default higher ok succeeded free or CANCELLED lower/equal exceeds Legend Customer UI Server logic Status / field write Gate Gateway