Subscribe

Change a subscription price and auto-test it before shipping

Lovable writes a test for rule changes you make, runs it automatically, and confirms it works before shipping.

When to use it

You need to adjust subscription pricing or a core business rule and want automated proof it works correctly.

Why it is worth it

Prevents shipping broken rules that could overcharge, undercharge, or reject valid orders; tests run without manual QA.

The prompt

I run a SaaS app called TaskFlow. Our pro plan costs $49 per month. I need to change it to $59 per month. Please make this change and write a test that verifies: 1) new customers see $59 at checkout, 2) existing customers still pay $49 until their next renewal, 3) the renewal price becomes $59 after the next billing cycle. Run the test and tell me it passes.

Swap TaskFlow, the plan name, and the prices for your own subscription app and pricing.

What you get

A price change that is tested and confirmed working before you ship it, with the test saved in your codebase.

From docs.lovable.dev/changelog#lovable-writes-and-runs-tests-for-the-rules-you-change

More build tips

All tips

Get the Loop every week.

New Lovable features and the prompts to use them, in one short email. Free, and you can leave any time.

Prompt copied