# Testing

You can test a complete purchase flow by using a sandbox account with Apple and Google

When testing In-App Purchases in a Sandbox environment, the duration cycles of the subscriptions are shortened to be able to evaluate behaviour for Auto-renew cycles.

\
**After 5 renewals your Subscription is automatically cancelled.**

\
All confirmation emails are sent by the App store to the email address used for testing.

\
See below for the time correspondence :

<div align="left"><img src="https://downloads.intercomcdn.com/i/o/357506852/71a22650ed94f3e94c8f9570/Screenshot+2021-06-03+at+10.27.34.jpg" alt="testing in app purchases subscription cycles" width="375"></div>

### Apple

You must use a sandbox account and TestFlight to test a purchase in sandbox mode

{% embed url="<https://help.purchasely.com/en/articles/6066063-test-in-app-integration-in-apple-app-store>" %}

### Google

You must add your Google account to the licence testers list to make a purchase in sandbox mode

{% embed url="<https://help.purchasely.com/en/articles/5977692-test-in-app-integration-in-google-play-store>" %}


---

# 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://purchasely.gitbook.io/purchasely/quick-start/testing.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.
