# Unity In-apps Integration Guide

1. Window->Package Manager and install In App Purchasing package

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

2. Add Products to the Google play and Appstore account with the same product ID you have in your game template settings

## Troubleshooting In-apps:

Check the UDPInstall folder and import unitypackages from there.

Test in-apps:\
1\. Start the game in Unity and purchase something, if everything ok means Unity IAP work fine and nothing wrong in code.

Test in-apps on device:

2\. To test in-apps use alpha release for Google Play and Testflight with Sandbox user for the Appstore.&#x20;

If the purchasing don’t work on the device, don’t panic, try to get logs from the device and contact us.\ <mark style="color:red;">**Sometimes in-apps don’t work out of box. The cause can be in Unity version or particular patch verstion, Unity IAP version, store platform changes or updates, sometimes they can work wrong with each other.**</mark>


---

# 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.candy-smith.com/main/general-info/unity-in-apps-integration-guide.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.
