# In-App Purchase

### What is In-App Purchase (IAP)?

In-app purchase (IAP) is a feature that allows users to buy digital products and services within an app. These purchases can include premium features, subscriptions, virtual goods, and more. IAP is managed by the respective app stores:

* **iOS (Apple App Store)**: Uses StoreKit to handle in-app purchases.
* **Android (Google Play Store)**: Uses Google Play Billing for in-app transactions.

### Types of In-App Purchases

Both iOS and Android offer similar types of in-app purchases:

1. **Consumables**: Items that are used once and can be purchased again (e.g., in-game currency).
2. **Non-Consumables**: One-time purchases that provide permanent access to a feature (e.g., removing ads).
3. **Subscriptions**: Recurring purchases that grant access to content or services over time.

### Configuring In-App Purchases

Before integrating an IAP plugin, you must configure in-app purchases in your respective app store.

* [**iOS & Android IAP Configuration Guide**](https://docs.webtonative.com/website-plugins/wordpress/in-app-purchase/in-app-purchase-iap-configuration-guide-for-ios-and-android)

Following these steps ensures a smooth setup before implementing an IAP plugin in your app.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webtonative.com/shopify/in-app-purchase.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
