# Can I add payments and subscriptions to a Draftbit app?

> Learn how Stripe, RevenueCat, and Square connect to Draftbit apps and what their MCP servers do during a build compared with runtime.

Source: https://draftbit.com/faq/can-i-add-payments-and-subscriptions/ · Last updated: September 2, 2026

Yes. Stripe is in the catalog twice, as a REST integration whose endpoints import from Stripe's official OpenAPI spec and as an MCP server the agent uses to set up payment processing and manage products and prices. RevenueCat and Square have MCP servers for mobile subscriptions, in-app purchases, and commerce. Payment verification and secret keys belong on a server, never in the app.

Stripe appears twice in the catalog because the two entries do different jobs. The Stripe MCP connector gives the agent tools while it builds, such as creating products and prices in your Stripe account and wiring payment processing into the app. The Stripe REST integration exposes Stripe API endpoints, imported from Stripe's OpenAPI spec, that the agent can test and that the app can call at runtime.

Requests that use your Stripe secret key must not run inside a mobile or web app, since anything in the bundle is visible to users. Draftbit refuses to generate app client code for a connector header that reads a sensitive environment variable. Put those calls in a Supabase edge function or your own backend, confirm the payment there or through a webhook, and only then mark an order paid.

For subscriptions and in-app purchases on iOS and Android, the RevenueCat MCP server lets the agent integrate subscription billing, create products and subscriptions, and manage status and renewals. The Square MCP server connects the agent to customers, orders, and items. Apple and Google still control app review and the policy decisions about what you sell inside a mobile app, so read their rules before you choose a payment path.

MCP connectors only run during an active chat thread. The published app needs the provider's SDK or API calls in its own code, which the agent can write. Test renewal, cancellation, refunds, and restore purchases before release. Provider and store fees are separate from your Draftbit plan.

## Useful links

- [Read the Stripe integration page](https://draftbit.com/integrations/stripe)
- [Read the RevenueCat MCP page](https://draftbit.com/mcp/revenuecat)

## Related questions

- [Which integrations does Draftbit support?](https://draftbit.com/faq/which-integrations-does-draftbit-support/)
- [Which developer accounts and fees do I need to publish a mobile app?](https://draftbit.com/faq/which-developer-accounts-and-fees-do-i-need/)
- [How does Draftbit handle API keys, secrets, and environment variables?](https://draftbit.com/faq/how-does-draftbit-handle-secrets-and-environment-variables/)
