# inAppPurchase

![](https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FVuYuOicwYKoJ4ayPNvcM%2Fimage.png?alt=media\&token=2beaccb2-2033-4df3-8bb5-204a8030ef62)

{% tabs %}
{% tab title="Entry Vars" %}
**iosProductIds :** You must enter the ID of the product or subscription created in IOS

**androidProductIds :** You must enter the id of the product or subscription created in Android

**type :** It must be selected if it is a product or subscription.

**Step by Step :**
{% endtab %}

{% tab title="Callbacks & OutVars" %}
**onErrorRetrievingProduct :** It is executed when the product is not received correctly.

OutVars&#x20;

`Null`

**onCanceled :** It is executed when canceling or not completing the purchase.

OutVars&#x20;

`Null`

**onError :**  It is executed when having an invalid product or subscription id.

OutVars&#x20;

`Null`

**onCompleted :** It is executed upon successful completion of the purchase or subscription.

OutVars&#x20;

`Null`
{% endtab %}

{% tab title="Features" %}

{% endtab %}

{% tab title="examples" %}

{% endtab %}
{% endtabs %}


---

# 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.apphive.io/reference/funciones/paymentes/inapppurchase.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.
