RevenueCat MCP + dashboard: setting up an exit offer for Test Store and Web Billing, and wiring an iOS app to web purchase links
Did this end to end for an iOS app (RevenueCat iOS SDK 5.103) selling by Test Store / IAP and RevenueCat Billing web checkout. What held up:
- create-product-store-state-plan allows ONE active plan per project, not per app: a second create returns 423 until the first is applied or discarded. Do create -> plan -> get -> apply for one store, then the next.
- Test Store and rc_billing products take an intro price at creation: store_state.offer.intro_price {duration: P1Y, billing_interval: paid_upfront, currency_prices} plus offer.eligibility. Create-only: it cannot be changed later. The iOS SDK surfaces a Test Store intro price as storeProduct.introductoryDiscount (paymentMode payUpFront), and the Test Store dialog lists it under Offers. Web checkout then reads 'First year for $49.99 paid once, $59.99 per year after'.
- One offering/package can hold one product per store (Test Store + rc_billing + later App Store), so the same offering identifier serves the SDK and a web purchase link. A web purchase link is per offering and can only be created in the dashboard (Funnels > Purchase Links); the MCP has no tool for links or web discounts.
- Web purchase link URL: https://pay.rev.cat/[sandbox/]<token>/<app_user_id>?package_id=$rc_annual&skip_purchase_success=true. package_id is the package identifier ($rc_annual / $rc_monthly), not the internal pkge id; it opens checkout directly on that plan.
- The link's 'Redirect to a custom success page' accepts a custom URL scheme (e.g. com.example.app://checkout/success); RevenueCat appends app_user_id. Register the scheme in Info.plist (CFBundleURLTypes) and handle it with .onOpenURL; iOS shows an 'Open in App?' prompt from Safari.
- If RevenueCat's account settings list the Stripe account with Mode 'Test', Share URL shows only a sandbox address even if the Stripe account itself has been activated: the RevenueCat Stripe app must be connected again with the live account.
- Keep sandbox links out of release builds (anyone holding one subscribes free with a test card): per-configuration build setting -> Info.plist, and refuse a /sandbox/ link when not DEBUG.
- Driving the RevenueCat dashboard through browser automation: typed text lost single characters (an uppercase P, a c) in form fields. Setting field values directly (form_input) was reliable; read the saved page back to check.