# Configure IAP Platform Settings

In this how-to, we will enable and configure Apple App Store in LootLocker so it can be used to handle in-app purchases.

### Prerequisites

* [A LootLocker account](https://lootlocker.com/sign-up)
* At least one created game in the [LootLocker Web Console](https://console.lootlocker.com/)
* An [Apple Developer Account](https://developer.apple.com/programs/enroll/)

### Configure IAP Settings in LootLocker

In the LootLocker Web Console, navigate to Settings and select In-App Purchases.

<figure><img src="/files/mCkh2275EPYjxf0LxUqw" alt=""><figcaption></figcaption></figure>

Select Apple App Store from the list of available providers.

### Configure Apple App Store Settings

Fill in the following fields:

* **Bundle ID:** The unique identifier for your iOS app (e.g., `com.yourcompany.yourgame`). This must match the Bundle ID configured in your Xcode project and registered in App Store Connect.
* **Issuer ID:** Your App Store Connect API Issuer ID. This is used to authenticate server-to-server communication with Apple’s App Store APIs.
* **Key ID:** The identifier for the API key generated in App Store Connect. This key is used together with the Issuer ID and Private Key to authorize requests.
* **Private Key:** The `.p8` private key file generated in App Store Connect for your API key. Upload the file here (Base64 encoded). This key is used to sign requests when validating purchases with Apple.

{% hint style="warning" %}
These credentials are created in App Store Connect under Users and Access → Keys. Make sure the key has access to In-App Purchases. The same credentials are used for both sandbox and production environments.
{% endhint %}

Once all required fields have been filled in, click the Enable toggle to enable Apple App Store as a purchase provider for your game.

Click Save Changes to save your configuration.

### Conclusion

In this guide, we enabled Apple App Store for in-app purchases and configured the required settings in LootLocker. Next, you can [create purchasable catalog listings](/commerce/real-money-purchases/how-to/apple-app-store/configure-catalog-listing-apple-app-store.md) that can be purchasesd in-game.


---

# 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.lootlocker.com/commerce/real-money-purchases/how-to/apple-app-store/configure-apple-iap-settings.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.
