--- name: add-subscription-billing-and-test-it-safely description: "Paid access breaks when billing and app access disagree. Your AI wires them together and tests the flow in test mode. Use for: Add subscription billing and test it safely." --- # Add subscription billing and test it safely Paid access breaks when billing and app access disagree. Your AI wires them together and tests the flow in test mode. ## What you need from the user - Your plan names and prices - Which pages or features are paid-only - Billing test keys, set in your own setup ## What to give back A patch that adds plans, checkout and paid-only pages, with a test plan for sign-up, cancel and failed payment. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me add subscription billing to my app. Plans and prices: [list] Paid-only pages or features: [list] My stack (framework, sign-in tool, database, billing tool): [list] Relevant code: [paste or point to paths, with keys removed] 1. Sketch the flow: sign up, pay, get access, cancel, payment fails. 2. Say where the app decides who has paid, and keep that check on the server. 3. Write the change as a patch on a new branch, with tests for each step. 4. Give me a test-mode checklist using the billing tool's test cards. I'll put the test keys in my own setup. Don't use live keys, deploy or merge. I'll review and ship it. ``` ## Rules - BotCurrent rates this job "Acts with your OK". Show what you will do and wait for a clear yes before each action. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - Billing code needs a second person's review. Run every case in test mode before you turn on live payments. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/implement-and-verify-subscription-billing-9e28cd29e0eb/ Original report: https://www.perplexity.ai/en-GB/hub/blog/computer-for-builders BotCurrent has not tested this skill. Check the result before you use it.