> For the complete documentation index, see [llms.txt](https://imagine-art-ai-documentation.gitbook.io/dall-e-app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://imagine-art-ai-documentation.gitbook.io/dall-e-app/in-app-purchases.md).

# In-app purchases

I used a third party called qonversion https\://qonversion.io/

Qonversion is a [Cross-platform](https://qonversion.io/subscription-management) subscription infrastructure, [a/b testing](https://qonversion.io/site/ab-testing), revenue [analytics](https://qonversion.io/analytics/), engagement [automation](https://qonversion.io/automation), and [integrations](https://qonversion.io/integrations) all in one place to grow your app faster. You can start for free.

First, you'll need to create an account in qonversion. but before that, Let's setup our google play console.

### Enable testing with your email

please go to your developer account then head to **setup ->License testing** then add a new license tester (the email that you will be using for testing)

<figure><img src="https://3686217603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsUAni25oGcVp41NhQbX%2Fuploads%2F0w5paYUxFZo1YtPbEq9H%2Fimage.png?alt=media&amp;token=21c32788-de3d-4612-9dfa-fd69f9bbede0" alt=""><figcaption></figcaption></figure>

### Submit your app for internal testing

before you roll out for production, export your app from google play as a signed .aab file then submit it to internal testing from your google play account (you should do this in order to be able to add in-app products)

### Add in-app products

select your app and go to **Products -> in-app products.** they may ask you to create a payment profile, just add your payment method and tax information and adress...

<figure><img src="https://3686217603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsUAni25oGcVp41NhQbX%2Fuploads%2FfFQUR4vmie89sKt7HlhN%2Fimage.png?alt=media&amp;token=ff58bf99-07d4-48bc-a7ce-0b60163cb351" alt=""><figcaption></figcaption></figure>

now add 5 products under the same ID and price as in the picture, or you can just click import and import this csv file <https://drive.google.com/file/d/1W3MLH8krWOm53V0zgLmHr0TwJ_N4xyiq/view?usp=sharing>

<figure><img src="https://3686217603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsUAni25oGcVp41NhQbX%2Fuploads%2FrfVZDLQkEXAXPSGGDmBO%2Fimage.png?alt=media&amp;token=615ba18c-8f61-4375-9c0f-cbf55001a602" alt=""><figcaption></figcaption></figure>

## Setup Qonversion

1. Navigate to the [New Project](https://dash.qonversion.io/app/start/create) page and provide new project's name.
2. In [Settings](https://dash.qonversion.io/project/settings), select the platform for your app and provide platform-specific data:
3. get the project key, copy it and paste it in android studio:

<figure><img src="https://3686217603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsUAni25oGcVp41NhQbX%2Fuploads%2FvBOmOGaGy7Kazazj8WKr%2Fimage.png?alt=media&amp;token=0905d0a0-e420-494a-a954-4fd133553b29" alt=""><figcaption></figcaption></figure>

open App.kt and paste it here

<figure><img src="https://3686217603-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsUAni25oGcVp41NhQbX%2Fuploads%2F3Pvb3uCoUCCmeVmwoe0P%2Fimage.png?alt=media&amp;token=de94d4c4-2d93-46b8-b2b9-de33f51f2955" alt=""><figcaption></figcaption></figure>

## Link google play with qonversion

please follow their documentation step by step to the end and make sure not to forget anything <https://documentation.qonversion.io/docs/service-account-key-android>
