The short answer
An in-app purchase is a payment made inside an app and processed by the app store. The app shows a product, the store takes payment, and your app or server then grants access. Products are usually consumable, one-time or subscriptions. The stores set rules on billing, disclosure, restoring purchases and refunds, so check the current documentation.
How in-app purchases work
In-app purchases are payments made inside an app and processed by the app store, not by your own checkout. The app shows a product, the person confirms, the store takes the payment, and your app, usually with help from your server, then grants whatever was bought. The store handles the card, the receipt and the payment screen. You handle what the person receives.
That split explains most of the design work. The store is the source of truth for whether a payment happened, and your system is the source of truth for what the person can now do. The two have to stay in step through every purchase, renewal, cancellation and refund. This guide follows that path. It does not cover how to choose a revenue model, which is a separate decision.
The product types
| Type | What it is | Example |
|---|---|---|
| Consumable | Bought, used up and bought again | Credits, extra lives, a bundle of downloads |
| Non-consumable | Bought once and kept for good | A premium feature, a content pack, removing ads |
| Subscription | Repeating payment for continuing access, renewed automatically until cancelled | A monthly plan, an annual plan |
| Free trial or introductory offer | A subscription that starts free or at a reduced rate for a set period | A trial week before the plan begins |
Each store defines these types in its own words and offers its own trial and offer options, which change from time to time. Ask your developer to list the exact product types the app will use, with names, and check them against the current documentation of both stores.
From tap to access: what happens behind the screen
- Products are created in the store consoles, with a name, a type and a price per country chosen by you within the options the store gives.
- The app asks the store for the product list and shows each product with the price the store returns. Do not hard-code prices in the app. Prices and currencies differ by country, and they can change.
- The person taps buy and the store's own payment sheet appears. They confirm with their usual method.
- The store completes the payment and hands the app a receipt or token.
- Your server checks the receipt directly with the store. This step matters, because an app on a modified phone can claim a purchase that never happened.
- The server records what the person now owns: an entitlement, such as an active plan until a date.
- The app asks your server what the person is entitled to and shows or hides features accordingly.
- Later events, such as a renewal, a failed payment, a cancellation or a refund, reach your server as notifications from the store, and the entitlement is updated.
Steps five to eight are server work, which is why subscription apps nearly always need a backend. The store's notifications are one more example of the connections described in mobile app APIs and third-party integrations. The names of the store interfaces differ and change, so check the current documentation for each.
What the stores require
Both stores publish rules for apps that sell digital items. Expect them to cover which billing system you must use, how a subscription's price, length and renewal must be shown before the person buys, and a way to restore earlier purchases on a new phone. The rules differ between Apple and Google, differ by country, and change. Read the current guidelines for both before you design the screens, and ask your developer to cite the rule behind each behaviour.
There is one requirement worth planning for now. Apple requires that an app which lets people create an account also lets them delete it from inside the app. For a subscription app, think about what deleting an account means for a live subscription. The subscription is held by the store, so deleting your account record may not stop the payments. Tell people plainly how to cancel, and ask your developer how the two interact.
Your privacy policy must also cover what purchase data you keep. The guide to app permissions and privacy basics covers the policy and the permissions an app asks for.
Refunds, cancellations and restoring purchases
For purchases made through the store, the store usually owns the payment relationship, so refund requests generally go to the store, not to you. That is a support matter you should prepare for. Write a short reply for customers who ask you for a refund: you cannot issue it directly, and this is where to ask the store. Check the current store policies, because the process and who decides can vary.
Cancelling a subscription is normally done in the person's store account settings, not inside your app. Your app can point to where they manage subscriptions. Access usually continues until the end of the period already paid for, but confirm how each store treats the end date. When a cancellation or refund reaches your server, update the entitlement so access ends at the right time.
Restoring purchases lets someone who has reinstalled the app, or moved to a new phone, get back what they already bought without paying again. Build a restore option, test it on a second device, and put it on the paywall or settings screen where people can find it.
Physical goods, web apps and your own payment provider
Store billing rules are mainly about digital items used inside the app. Physical goods and services delivered outside the app, such as a parcel or an appointment, normally use ordinary payment methods, and the rules are different. Check the current rules for your type of item. If your app sells goods, the guide to ecommerce website vs mobile app covers what a shopping app adds.
A web app is a different case again. It sits outside the stores and can use its own payment provider, though your customers may expect to pay in the familiar store sheet. The choice between a store app and a web app is covered in native app vs web app. If you hope to use your own payment provider inside a store app, ask a lawyer and read the current store rules for your countries first, because the position differs by region and has changed over time.
Test every state before launch
Both stores offer a way to test purchases without real payments. Check the current documentation for how to set up test accounts. A purchase that works once in the happy path is not tested. These cases are:
- A successful purchase of each product, and the screen the person sees afterwards.
- A purchase interrupted by a lost connection or a closed app after payment, which must end with the person receiving what they paid for.
- A subscription that renews, fails to renew, is cancelled and expires.
- A refund, and the loss of access that follows.
- Restoring purchases on a clean install and on a second device.
- A person who signs in with a different account on the same phone.
- A price shown in another country's currency, to check that nothing is hard-coded.
Put these cases in the app brief as acceptance tests, so the build is judged against them. Give the store reviewers demo steps for each purchase in the review notes.
Reports, support and tax
Decide who looks at sales reports, who handles purchase questions from customers, and how store income is recorded in your accounts. Ask your accountant how sales through each store are taxed and reported in the countries where you trade, because the position differs by country and by type of sale. If you want a team to build the purchase flow and the server work behind it, see the mobile app development page from Liftup Technologies.
