# In app purchases

> In app purchases is an open-source agent skill for finance and payments. Sells a one-time Premium unlock through the App Store and Google Play. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/in-app-purchases
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** in-app-purchases
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-12-04

## About

This skill gives an agent a complete in-app purchase flow for one non-consumable Premium unlock in a React Native app built with expo-iap. It covers a paywall with every state it can show, saving the entitlement on the device before a transaction is finished, restore, and revoking Premium only when the store gives explicit dated evidence of a refund. It works without a server by default, and server-side verification is only added when the developer opts in through a contract.

The skill ships templates for the purchase port, the expo-iap adapter, the premium and paywall stores, an entitlements table and tests, plus two Node checkers that run the app's purchase modules against a scripted expo-iap stand-in and report PASS or FAIL. A StoreKit harness with Maestro flows and App Store Connect scripts is included for testing and console setup, and the skill asks the developer for pricing and Family Sharing decisions rather than guessing them.

It expects a React Native project using Expo, Zustand and a SQLite data layer, and it depends on several companion skills for result types, connectivity, screens, localisation and end-to-end tests. Store console steps such as agreements, tax, banking and submissions are left to a human.

## When your agent uses it

> Sells a Premium unlock with expo-iap behind a PurchasePort - saved entitlement, paywall states, restore, refunds, store testing. Use when touching IAP, buy, restore, paywall or Premium state. Not for ads (admob-ads-and-consent).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript, Ruby, Swift and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/in-app-purchases)
- [Network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/in-app-purchases)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/in-app-purchases)

## Features

- **Safe purchase ordering:** Saves Premium on the device before finishing each transaction, so an unsaved purchase is not lost.
- **Evidence-based revocation:** Removes Premium only when a verified transaction carries a dated revocation, never on a missing or failed read.
- **Restore handling:** Distinguishes a failed restore sync from a successful one with nothing to restore.
- **Paywall states:** Defines every paywall state with its view, test identifier and reducer case.
- **Store price display:** Shows the store's own localised price text and never types or rebuilds prices in code.
- **Purchase checkers:** Static and behavioural Node scripts verify the purchase rules and the expo-iap pin.
- **StoreKit test harness:** Maestro flows and a StoreKit configuration for testing purchases on a simulator.

## Good for

- Add a one-time Premium unlock to an Expo app
- Build a paywall screen with restore and pending-approval states
- Handle refunds and revoke Premium only on dated store evidence
- Set up a StoreKit test configuration for simulator purchase tests
- Check that the app's purchase code follows the save-then-finish order

## Install

### Claude Code

This skill ships in the `react-native` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills
```

Or copy only this skill to `~/.claude/skills/in-app-purchases`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/in-app-purchases &&
cp -R "$tmp/skills/in-app-purchases" ~/.claude/skills/in-app-purchases &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/in-app-purchases` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/in-app-purchases` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/in-app-purchases &&
cp -R "$tmp/skills/in-app-purchases" ~/.agents/skills/in-app-purchases &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/in-app-purchases` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/in-app-purchases` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/in-app-purchases &&
cp -R "$tmp/skills/in-app-purchases" ~/.cursor/skills/in-app-purchases &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/in-app-purchases` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/in-app-purchases
```

Or copy the folder to `~/.gemini/skills/in-app-purchases` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/in-app-purchases`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/in-app-purchases &&
cp -R "$tmp/skills/in-app-purchases" ~/.copilot/skills/in-app-purchases &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/in-app-purchases` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git
```

Then copy `ReactNative-Skills/skills/in-app-purchases` into your agent's skills folder as `in-app-purchases`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which libraries does In app purchases depend on?

It pins expo-iap at version 5.8.0 and expects a React Native app with Expo, Zustand state, and a SQLite entitlements table.

### Does In app purchases need a backend server?

No. The default setup verifies purchases on the device. Server verification is only added when the developer opts in through the contract file.

### Does In app purchases trigger automatically?

It is meant for tasks touching in-app purchases, buy or restore actions, paywalls or Premium state. It is not for ads, which are covered by a separate skill.

### Which AI clients does In app purchases support?

The content does not tie it to specific clients, so it follows the shared agent skills format across the listed clients.

### How do I install In app purchases in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/in-app-purchases to use it in all your projects, or to .claude/skills/in-app-purchases in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

### Does In app purchases run scripts?

Yes. It runs JavaScript, Ruby, Swift and TypeScript scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use In app purchases?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to In app purchases?

The closest alternatives to In app purchases are Paywall optimization, Paywalls, Axiom payments, Monetization strategy and Web to app funnel.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Paywall optimization](https://ai-powered.com/skills/paywall-optimization): Paywall optimization is an open-source agent skill for finance and payments.
- [Paywalls](https://ai-powered.com/skills/paywalls): Paywalls is an open-source agent skill for marketing and seo.
- [Axiom payments](https://ai-powered.com/skills/axiom-payments-charleswiltgen): Axiom payments is an open-source agent skill for finance and payments.
- [Monetization strategy](https://ai-powered.com/skills/monetization-strategy-appeeky): Monetization strategy is an open-source agent skill for finance and payments.
- [Web to app funnel](https://ai-powered.com/skills/web-to-app-funnel): Web to app funnel is an open-source agent skill for finance and payments.
- [Integrate openreceive](https://ai-powered.com/skills/integrate-openreceive): Integrate openreceive is an open-source agent skill for finance and payments.
- [Pricing strategy](https://ai-powered.com/skills/pricing-strategy-zeitlos): Pricing strategy is an open-source agent skill for finance and payments.
- [Use user controlled wallets](https://ai-powered.com/skills/use-user-controlled-wallets): Use user controlled wallets is an open-source agent skill for finance and payments.

---
Source: https://ai-powered.com/skills/in-app-purchases
