Agent
Stripe Payments Agent
Add subscriptions without the gotchas.
Adds a Stripe paywall, a subscription tier picker, the Checkout redirect, the webhook handler, and the in-app entitlement gate. Knows about Apple's 30% rule and routes around it via web checkout where appropriate.
Works on an existing project
Three steps. No fluff.
- 1
Pick the feature to gate
Tell the agent which feature/screen should be Pro-only. It reads your code to know what to wrap.
- 2
Paywall + Checkout + webhook
The agent adds a paywall screen, a Stripe Checkout redirect, a webhook handler that flips entitlement, and an in-app gate hook.
- 3
Drop in keys, you're live
Paste STRIPE_SECRET_KEY + STRIPE_WEBHOOK_SECRET + price IDs. The wizard handles routing around Apple's 30% via web checkout.
Generated paywall.tsx (excerpt)
tsx
export function Paywall() {
async function startCheckout(tier: "monthly" | "annual") {
const r = await fetch("/api/checkout", {
method: "POST",
body: JSON.stringify({ tier }),
});
const { url } = await r.json();
Linking.openURL(url);
}
return (
<View style={s.card}>
<Text style={s.h}>Unlock Pro</Text>
<Pricing tier="annual" onPress={() => startCheckout("annual")} badge="Save 40%" />
<Pricing tier="monthly" onPress={() => startCheckout("monthly")} />
<Text style={s.fine}>7-day free trial. Cancel anytime.</Text>
</View>
);
}Ready to add payments?
Your first build is free — no credit card needed.