# Configure IAP Platform Settings

In this how-to, we will enable and configure Stripe 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/)

### Create a Stripe Connected Account

Before Stripe can be used for purchases in LootLocker, your game must be connected to a Stripe Connected Account.

To create a Stripe Connected Account for use with LootLocker, [please contact the LootLocker via email](mailto:hello@lootlocker.com?subject=Stripe%20Connected%20Accounts\&body=I'm%20interested%20in%20implementing%20Stripe%20in%20my%20game.%0D%0A%0D%0AGame%20Name%3A%0D%0ADescription%3A%0D%0ATarget%20Platform\(s\)%3A%0D%0A%0D%0ATeam%20Info%3A). This is currently a manual onboarding process.

### Configure Stripe in LootLocker

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

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

Select Stripe from the list of available providers and click the Enable toggle to enable Stripe as a purchase provider for your game.

Fill in the following fields:

* **Connected Account ID:** Your Stripe Connect account ID (e.g., `acct_...`). This identifies the Stripe account that will receive payments.
* **Publishable Key:** Your Stripe publishable API key (e.g., `pk_test_...` or `pk_live_...`). This is used by the client to initialize Stripe payments.
* **Success URL:** The URL users are redirected to after a successful payment. This is typically a confirmation or return-to-game page.
* **Cancel URL:** The URL users are redirected to if they cancel the payment flow.
* **Live Mode:** Enables real payments. When disabled, Stripe operates in test mode using test credentials and no real charges are made.

{% hint style="warning" %}
You must [onboard your Stripe account through Stripe Connect](mailto:hello@lootlocker.com?subject=Stripe%20Connected%20Accounts\&body=I'm%20interested%20in%20implementing%20Stripe%20in%20my%20game.%0D%0A%0D%0AGame%20Name%3A%0D%0ADescription%3A%0D%0ATarget%20Platform\(s\)%3A%0D%0A%0D%0ATeam%20Info%3A) before using this feature. Once connected, Stripe handles payment processing, compliance, and payouts.
{% endhint %}

### Test Mode

While testing your integration, leave Live Mode toggled off. This allows you to use Stripe’s test environment and test payment methods to verify that purchases are working correctly before going live. When in Test Mode, use the Test Publishable Key (e.g., `pk_test_...`) provided by Stripe.

When you are ready to begin accepting real payments, toggle Live Mode, swap to the Live Publishable Key (e.g., `pk_live_...`), and save your changes.

Click Save to store your configuration.

### Conclusion

In this guide, we enabled Stripe for in-app purchases and configured the required settings in LootLocker. Once Stripe is configured, you can [configure Catalog Listings to support Stripe IAP.](/commerce/real-money-purchases/how-to/stripe/configure-catalog-listing-stripe.md)


---

# 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/stripe/configure-stripe-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.
