> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# In-App Purchases

> Sell subscriptions and digital goods in your app with Apple StoreKit and Google Play Billing, and check when in-app purchases are required.

Median's In-App Purchases (IAP) plugin integrates Apple's StoreKit and Google Play Billing, so you can securely sell digital content, subscriptions, and one-time purchases inside your mobile app.

> [!WARNING]
>
> **Check whether your app must use in-app purchases**
>
> Apple and Google both require their own billing systems for most digital goods and services sold in an app. Review each platform's guidelines before you implement payments, because using the wrong payment method is a common reason apps are rejected.
>
> * [Apple App Review Guidelines: In-App Purchase (section 3.1)](https://developer.apple.com/app-store/review/guidelines/#in-app-purchase)
> * [Google Play Payments policy](https://support.google.com/googleplay/android-developer/answer/9858738)

## Platform guides

> [card] [Apple In-App Purchases](https://docs.median.co/docs/apple-iap.md)
>
> Integrate StoreKit to support consumables, non-consumables, and auto-renewing subscriptions on iOS.

> [card] [Google In-App Purchases](https://docs.median.co/docs/google-iap.md)
>
> Integrate Google Play Billing to support one-time purchases and subscriptions on Android.

> [card] [Accepting payments](https://docs.median.co/docs/faq-publishing.md#how-can-i-accept-payments-within-my-app)
>
> Understand App Store and Google Play compliance requirements before you implement in-app purchases.

## When you need in-app purchases

| What you sell | In-app purchases required? |
| - | - |
| Digital content or features used in the app, such as premium features, in-app currency, or content unlocks | **Yes** |
| Subscriptions to digital content or services | **Yes**, in most cases |
| Physical goods, such as clothing or groceries | **No**. You can use your own payment provider. |
| Services delivered outside the app, such as rides, bookings, or appointments | **No**. You can use your own payment provider. |

Rules differ by platform, app category, and region, and they change over time. Treat this table as a starting point and confirm the details in the official guidelines linked above.

## Product types

| Product type | Apple App Store | Google Play |
| - | - | - |
| Consumable (can be bought repeatedly, such as credits) | Consumable | One-time product (consumable) |
| Non-consumable (bought once, such as a permanent unlock) | Non-consumable | One-time product (non-consumable) |
| Auto-renewing subscription | Auto-renewable subscription | Subscription |
| Fixed-term subscription that doesn't renew | Non-renewing subscription | Prepaid subscription plan |

## Testing purchases

Test purchases before you submit your app. Neither platform charges you for test transactions.

* **iOS:** Use [sandbox testers](https://developer.apple.com/documentation/storekit/testing-in-app-purchases-with-sandbox) from App Store Connect, or distribute a build through TestFlight.
* **Android:** Add [license testers](https://developer.android.com/google/play/billing/test) in Google Play Console and install the app from an internal testing track.

> [!TIP]
>
> Test on a physical device. App Store and Google Play billing don't work in the App Studio simulators.


## Related topics

- [Google In-App Purchases](https://docs.median.co/docs/google-iap.md)
- [Apple In-App Purchases](https://docs.median.co/docs/apple-iap.md)
- [Google In-App Purchases (legacy)](https://docs.median.co/docs/google-iap-legacy.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.