In-app purchase (StoreKit 2, Play Billing)
Sells digital goods and subscriptions through the platform store.
In one line
Can sell digital items and subscriptions, after you approve each purchase
Sells digital goods and subscriptions through the platform store.
The platform handles payment, receipts and refunds, and takes a commission. The store knows who buys what in every app.
What it can and can't do
What the user does: You tap Buy or Subscribe and confirm with Face ID, a fingerprint or a passcode
It can
- Charge you through the App Store or Google Play after you confirm
- Offer subscriptions that renew until you cancel
- Issue refunds through the store tools on iPhone
It cannot
- Charge you without a purchase sheet and your confirmation
- Skip the store's fee, which is 15 or 30 percent in most cases
- Cancel your subscription for you; that happens in your store account
How it differs between platforms: iPhone uses StoreKit and Face ID. Android uses Play Billing and a Google Play purchase sheet. Store fees are 15 or 30 percent.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Supported |
| First version | Android 4.0 (API 14) | iOS 15.0 |
| Permission or entitlement | com.android.vending.BILLING (normal) | com.apple.developer.in-app-purchase capability |
| Protection level | normal | entitlement |
| How access is granted | install | prompt |
| What the user sees | Google Play purchase sheet with auth | App Store purchase sheet with Face ID |
| How long it lasts | Entitlements verified by server | Verified through signed transactions (JWS) |
| How to take it back | Play Store > Subscriptions | Settings > Apple ID > Subscriptions |
| Store policy | Play: digital goods must use Play Billing unless a program allows alternatives; PBL 7 or 8 required for new releases | App Review 3.1.1 |
| API | Google Play Billing Library 7 and 8, ProductDetails, BillingClient | StoreKit 2 Product, Transaction, AppTransaction (iOS 16); StoreKit Messages |
| Notes | Fee 15 percent for first million dollars and subscriptions after year one; 30 percent standard. Epic settlement changes pending. | Small Business Program 15 percent; App Store Server API for refunds. |
Data you get
What comes back: Signed transaction
Shape: object
How often: per purchase
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
price | float | currency | varies | exact |
expiration | string | ISO date | varies | exact |
Technical limits
- Apple 3.1.1 and Play rule: digital goods need store billing except where law or programs allow external options
- Store holds card data, not the app
The story
What it is
The store's built in way to sell subscriptions and digital goods inside an app.
For you
You tap Subscribe and a store sheet asks for Face ID or a fingerprint. The charge goes on your account and you can manage or cancel it in settings.
For makers
Makers get payments, receipts and refunds handled for them. The store keeps a commission, usually 15 to 30 percent, and knows who buys what in every app.
Where you see it
| Type | Example | Apps |
|---|---|---|
| games | A game sells gems and a battle pass with one tap. | Fortnite, Candy Crush |
| media | A streaming app sells a monthly plan. | Netflix, Spotify |
| productivity | A notes app unlocks pro features once. | Bear |
| dating | A dating app sells boosts and premium. | Tinder |
| education | A language app sells a yearly plan. | Duolingo |
| security | A fraud team checks receipts to stop fake purchases. | None named |
| ads | A growth team measures which ad led to a first purchase. | None named |
Risks
- Dark pattern upsells
- Fake receipts and fraud
Android and iPhone in short
- Android: Google takes 15 percent on the first million dollars and on subscriptions after year one. 30 percent is standard.
- iPhone: Apple's Small Business Program lowers the fee to 15 percent. Purchases use Face ID.
What the platform says
- Apple: In-App Purchase. Apple pitches In-App Purchase as a simple, secure way to sell digital goods and subscriptions in apps.
- Google: Google Play Billing. Google describes Play Billing as the system for selling digital products and subscriptions in apps.
Good uses and abuse
Legitimate uses
- Subscriptions
- Game currency
Known abuse
- Dark patterns
- Fraud with fake receipts
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 4 of 5 | How revealing the data is |
| Utility | 5 of 5 | How useful it is to honest apps |
| Friction | 2 of 5 | How much the user has to do |
| Fingerprint bits | 1 | Rough identifying entropy, when known |
A real example: LinkedIn
Premium and Learning subscriptions are sold in app. Apple label lists Purchase History and Other Financial Info as Linked to You; Play lists purchase history and other financial info (optional).
History
- 2021-06, iPhone iOS 15: StoreKit 2
- 2022-03, Android n/a: Play Billing Library 5 and later changes to subscriptions
- 2022-04, Android Play Billing 5: Subscription offer model update
- 2024-08, Android PBL 7: Required for new apps on Play from Aug 2025
Related capabilities
Related
- US external links and alternative billing (post Epic rulings). Can send you to outside web checkout in the US, with fees still being settled
- EU DMA alternative payments, links and distribution. Can offer other payment providers and web links in the EU, with a clear screen first
- Japan MSCA payments and distribution (Dec 2025). Can offer other app stores, payment options and web links to buyers in Japan
Same idea on the web
- Digital Goods API (Play Billing in a TWA). Can sell in app items in a Play Store web app through Google Play
- Payment Request API. Can open the browser's pay sheet with saved cards and addresses you pick
Sources
- Android: Google Play Billing
- Apple: In-App Purchase
- Apple: In-App Purchase
- App Store listing and App Privacy label, LinkedIn (id288429040)
How well checked: Checked against real behavior.