How it works
What you can sell
Both stores know the same basic kinds of products:
| Product type | Examples | Restorable? |
|---|---|---|
| Consumable | Coins, gems, extra lives, 10 photo credits. Used up, can be bought again. | No: once used, it’s gone |
| Non-consumable | Remove ads, “Pro” unlock, a filter pack. Bought once, kept forever. | Yes, on every device |
| Auto-renewable subscription | Premium monthly or yearly. Renews until the user cancels. | Yes |
| Non-renewing subscription | A 3-month season pass. Ends by itself; the app must track the end date. | Yes, by your own server |
Apple uses exactly these four names. Google Play calls them one-time products (consumable or not, depending on whether the app consumes them) and subscriptions (auto-renewing or prepaid).
The store handles the money
When you buy something inside an app, you don’t pay the app. You pay Apple (App Store) or Google (Google Play Billing). The store shows its own purchase sheet, charges the payment method saved in the user’s account, and takes a commission. The app never sees the card number. It only gets a signed record that a purchase happened.
That’s different from buying a pizza or a taxi ride, where the app uses its own payment gatewayPayment gatewayA third-party service that processes card payments for an app or website.Open in glossary → (covered in Shopping cart and checkout). As a rule of thumb, digital content and features used inside the app go through the store; physical goods and services go through a normal checkout. The exact rules differ between countries and change over time, so check what applies to your app.
- 1. PaywallLoads the products and their prices from the store, then the user taps Subscribe.
- 2. Store purchase sheetThe system sheet shows the price, trial and payment method. The app cannot change or see it.
- 3. Store charges the userCard, carrier billing or gift card balance, plus any bank check (3-D Secure). The app never sees card details.
- 4. App receives the transactionSuccess, canceled, pending (Ask to Buy, slow payment) or failed. Each needs its own screen.
- 5. Server verifies itChecks the signed transaction or purchase token with the store and saves an entitlement for the account.
- 6. Premium unlocksImmediately, without a restart. Then the app finishes (iOS) or acknowledges (Android) the purchase.
- Later: store notificationsRenewals, billing problems, cancellations and refunds arrive as server notifications and update the entitlement.
The entitlement on your server, not a flag on the phone, is the single source of truth for "is this user Premium?"
- The app loads products from the store. Each product (with an ID like
premium_monthly) is set up by the team in App Store Connect or the Play Console, the websites where developers manage their app on each store. The store returns the name and the price in the user’s currency. - The user taps Subscribe, and the store’s own sheet appears with the price, the trial and the payment method. The app can’t change what’s on it.
- The store charges the user. This can include a bank check (3-D Secure3-D SecureAn extra step where the card's bank asks the shopper to confirm an online payment.Open in glossary →), a parent’s approval, or a slow payment method that takes days.
- The app gets a result: purchased, canceled by the user, pending, or failed. Each one needs its own UI.
- The server verifies the purchase with Apple or Google and stores an entitlementEntitlementThe record of what a user has paid for and until when, ideally kept on the server.Open in glossary → (“Maja has Premium until 15 Nov 2026”) on her account.
- The app unlocks the content right away, then marks the transaction as handled: it finishes it on iOS and acknowledges it on Android. On Google Play, a purchase that isn’t acknowledged within three days is automatically refunded.
- Later, the store tells the server about changes: renewals, failed payments, cancellations, refunds. The server updates the entitlement, and the app follows.
The life of a subscription
A subscription isn’t a single purchase. It moves from one state to the next for months, mostly while the app is closed (the same idea as in State transition testing):
| State | What it means | Should the user have Premium? |
|---|---|---|
| Free trial / intro offer | Free (or cheaper) for a while, then the full price. Usually once per user. | Yes |
| Active | Paid, renews automatically. | Yes |
| Canceled | Auto-renew is off, but the paid period hasn’t ended. | Yes, until the end date |
| Grace period | A renewal payment failed (expired card), the store keeps retrying. | Yes, if the app enabled a grace period |
| Billing retry / account hold | Payment still failing after the grace period. | No, but it comes back if the payment is fixed |
| Expired | Ended and not renewed. | No |
| Refunded / revoked | The store gave the money back. | No, immediately |
Plan changes are their own little world:
- Upgrade (to a more expensive plan): on the App Store it usually takes effect immediately, and the user gets money back for the unused part of the old plan. Settling the difference like this is called proration.
- Downgrade (to a cheaper plan): usually takes effect at the next renewal date.
- Crossgrade (same level, different length, e.g. monthly to yearly): on the App Store the timing depends on the two lengths. On Google Play the app chooses for every plan change whether it happens right away (with proration) or at the next renewal.
Dev note
Google Play calls this choice the replacement mode. - In every case the user must end up with one subscription and one charge per period, never two.
Check this part
A user removed ads for $2.99 and installs the app on a new phone. What type of product is this, and what should happen?
A user cancels their monthly subscription on day 10 of 30. What should the app do?