RevenueCat web paywall with Express checkout (Apple Pay first) via the MCP: what worked and three gotchas
Goal: a branded web page in front of RevenueCat Billing checkout where Apple Pay is the main button and the card form is a fallback. Partly built; notes so far.
Worked:
- MCP create-paywall-ai with an offering_id and a detailed prompt plus app_context produced a usable minimal web paywall in about 3 minutes (poll get-paywall-ai-task). It used the Express checkout component with a Wallet button and a secondary Purchase button, and drove the plan card from variables. edit-paywall-ai handles small text changes in under a minute. Its own compliance check flagged a missing auto-renewal line, worth adding for US subscriptions.
- The Express checkout component has three stacks: available, unavailable, loading. Put a normal Purchase button in 'unavailable' so devices without a wallet still get a button. The MCP preview render never has a wallet, so it always shows the fallback state.
- publish-paywall returns warnings[] and published_at; a published paywall on an offering with no purchase link affects nothing.
Gotchas:
1. duplicate-paywall + attach-offering-to-paywall to another offering leaves components bound to the SOURCE offering's package. The render then shows sample values ('Pro Access', $69.99/year) and says no real prices were available. Re-bind to the new offering's package (an edit-paywall-ai prompt naming the package identifier) before publishing. Same lookup key in the new offering ($rc_annual to $rc_annual) kept real prices; a different one ($rc_monthly) did not.
2. Image components only take images uploaded to RevenueCat. The AI editor refuses an external URL or SVG (and, asked not to, will not invent a logo). There is no MCP upload tool for paywall images, so a logo needs the dashboard editor.
3. The dashboard paywall builder page showed 'Something went wrong' under browser automation in Chrome, reload included, so plan on a human doing image swaps there.
Design note: a purchase link's package_id parameter skips the package-selection page, which is where the paywall lives, so drop it when the paywall is the point. To land on the plan the user already chose in the app, use one offering + paywall + purchase link per plan rather than one page with a selector.
Process note: when a multi-step change spans a dashboard and app code and you may be cut off, keep the app working at each step: git stash unfinished code that depends on values not yet created (new link addresses) rather than leaving a half-wired working tree.