in-app-purchases

in-app-purchases is a skill for Claude Code from AnilBurcu/claude-code-react-native. It costs 37 tokens per session (1,255 once invoked), scanned A, original, MIT.

A reference for adding in-app purchases and subscriptions to React Native apps using RevenueCat, a service that manages store purchases and subscription status.

In plain words
What is it for?
Use it for paywalls, subscription setup, sandbox purchase issues, purchase webhooks, restoring purchases, account transfers, and premium-status updates.
Why use it?
It helps keep premium access accurate across devices and accounts by treating verified server updates as the source of entitlement status.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the rn plugin — 18 skills, 4 agents shipped together

Good fit Use it for paywalls, subscription setup, sandbox purchase issues, purchase webhooks, restoring purchases, account transfers, and premium-status updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anilburcu/claude-code-react-native/in-app-purchases
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AnilBurcu/claude-code-react-native --skill in-app-purchases
Clone the repo
git clone --depth 1 https://github.com/AnilBurcu/claude-code-react-native

Made for: Claude Code.

Or install rn, the plugin that ships this one along with the rest of its 18 skills, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for in-app-purchases

README.md
[![agentmods](https://agentmods.dev/badge/skills/anilburcu/claude-code-react-native/in-app-purchases/github.svg)](https://agentmods.dev/skills/anilburcu/claude-code-react-native/in-app-purchases)
Your own site
<a href="https://agentmods.dev/skills/anilburcu/claude-code-react-native/in-app-purchases"><img src="https://agentmods.dev/badge/skills/anilburcu/claude-code-react-native/in-app-purchases/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for in-app-purchases

Your own site · 80×15
<a href="https://agentmods.dev/skills/anilburcu/claude-code-react-native/in-app-purchases"><img src="https://agentmods.dev/badge/skills/anilburcu/claude-code-react-native/in-app-purchases.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,255 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01255
Opus 5.5 $0.00015 $0.00502
Sonnet 5.5 $0.00007 $0.00251
Haiku 4.5 $0.00004 $0.00126

Measured 1mo ago against content hash 6ccfc4c2faf2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

in-app-purchases scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/rn/skills/in-app-purchases/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Subscriptions without 2 AM incidents

The architecture rule everything else hangs on

Entitlement truth lives on your server, not in the client. The purchase SDK tells the client "probably premium" fast; the webhook pipeline tells your database "actually premium" reliably. The client renders from server state and treats its local SDK state as an optimistic hint.

Every horror story in this domain is a variation of trusting the client: premium flags in AsyncStorage, entitlement checks that only run at purchase time, or webhook handlers that were never verified against replay.

RevenueCat wiring that holds up

  • Identify the user to the SDK with your own auth user id after sign-in. Anonymous ids merging into identified ids is where "user bought on the wrong account" tickets are born.
  • Configure once at startup with the platform key; render from customerInfo listeners rather than one-shot fetches, so a purchase completing in the background updates the UI without a restart.
  • Decide your transfer policy consciously. "Transfer to new app user id" versus blocking transfers changes what happens when one store account signs into a second app account. Whichever you pick, enforce ownership rules in your own database guards; the SDK setting alone is not a policy.
  • Restore purchases must be a visible button (App Store review expects it) and must resolve through the same server-side reconciliation as a fresh purchase.

Webhooks: the part that must be boring

  • Verify the sender on every request. RevenueCat gives you two checks: the Authorization header value configured in the dashboard (compare the whole string), and optional HMAC signing, which adds X-RevenueCat-Webhook-Signature: t=<unix seconds>,v1=<hex> where v1 is HMAC-SHA256 over <t>.<raw body> with the signing secret. Turn signing on, verify against the raw request bytes before any JSON parsing, and reject timestamps outside a few minutes; the secret is shown once at creation, so store it immediately. An unverified webhook endpoint is an open "make me premium" API.
  • Answer fast. RevenueCat disconnects after 60 seconds and retries a failed or timed-out delivery up to 5 times with growing delays (5, 10, 20, 40, 80 minutes), then gives up. A slow handler therefore produces duplicates first and lost events second: commit the dedupe record and the upsert, return 200, and push anything slow (email, analytics, CRM sync) to a queue.
  • If the endpoint runs on a platform that enforces its own auth by default (Supabase Edge Functions and their JWT verification, for example), remember the store's webhook sender cannot present your platform's JWT. Shared-secret endpoints must have platform JWT verification disabled and their own secret check enabled, or every event bounces with 401 and premium "never arrives".
  • Deduplicate by event id. Webhook senders retry; your handler will see the same event twice on a bad day.
  • Store the environment (SANDBOX vs PRODUCTION) on every event and subscription row, and filter sandbox out of admin dashboards and metrics. Mixed environments make revenue numbers lie.
  • Reconcile, don't accumulate: handlers should upsert the subscription to the state the event describes, so replays and out-of-order deliveries converge instead of corrupting.
  • A runtime-neutral handler skeleton with the dedupe and transaction contracts spelled out is in reference.md.

Read the full file on GitHub · 53 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines · -27 tokens per session 6ccfc4c2faf2
  2. 2mo ago First seen · 52 lines · 64 tokens per session scan A 948064f2d8c1

Subscribe to this mod's changes

in-app-purchases is a skill published in the GitHub repository AnilBurcu/claude-code-react-native (3 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 1,255 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

expo-56

Authoritative, version-pinned reference for Expo SDK 56 and SDK 57 — both postdate your training, so defer to this skill over memory for anything Expo. SDK 57 is the current release (2026-07-08, React Native 0.86); SDK 56 is the previous, still-supported release (React Native 0.85). Use it whenever the user is…

mahdi-salmanzade/expo56-skill · 391 tokens

expo

Use when shipping a React Native app with Expo — EAS Build/Submit/Update, eas.json profiles and channels, config plugins, prebuild/CNG, runtime-version policy, OTA updates that never land, SDK upgrades, the New Architecture. NOT RN UI, navigation or native-module authoring (that is react-native), NOT a Dart app (that…

ericrisco/rsc-harness · 79 tokens

expo-launchpad-evaluator

Phase A, step 6 — skeptical QA. Run the app, watch it, then judge against the contract. Default = functional check; --strict adds quality scoring and an edge-case sweep.

SummerRiversound/expo-launchpad · 45 tokens

expo-launchpad-design

Phase A design — define the ui/designTokens.ts spec (colors, spacing, radius, typography), the visual/component concept (game: code-drawn Skia shapes / app: RN primitives), and the asset plan (icon+splash branding, contrast-safe accessibility). Advances pipeline state to contract.

SummerRiversound/expo-launchpad · 64 tokens

expo-launchpad-plan

Phase A plan — assign app identity (appname/appslug/bundleid/orientation) into config.md, then write the PRD in defaultlanguage with a kind-branched structure (game: core loop/mechanics/content metrics/progression/win-lose; app: purpose/journeys/features/data model/navigation), plus a project structure map, and…

SummerRiversound/expo-launchpad · 82 tokens

expo-launchpad-research

Phase A research — kind-aware market/genre (game) or category/competitor (app) discovery, concept proposal via AskUserQuestion, a store clone-avoidance check (App Store 4.3 / Google Play impersonation), and the research spec write-up.

SummerRiversound/expo-launchpad · 62 tokens