> For the complete documentation index, see [llms.txt](https://docs.candy-smith.com/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.candy-smith.com/main/general-info/unity-in-apps-integration-guide.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.candy-smith.com/main/general-info/unity-in-apps-integration-guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
