# PurchasesListener

```
public interface PurchasesListener
```

```
com.gaa.sdk.iap.PurchasesListener
```

<br>

It is a listener to notify when the request for purchase history completes.

## Public methods <a href="#purchaseslistener-publicmethods" id="purchaseslistener-publicmethods"></a>

***

### onPurchasesResponse <a href="#purchaseslistener-onpurchasesresponse" id="purchaseslistener-onpurchasesresponse"></a>

```
void onPurchasesResponse( iapResult, List<> purchases)
```

It is called up to notify that the request for purchase history has completed.

| **Parameters:** |                                                                                |
| --------------- | ------------------------------------------------------------------------------ |
| iapResult       | Results of request                                                             |
| purchases       | History of non-consumed purchase data (including Monthly auto-renewal product) |


---

# 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://onestore-dev.gitbook.io/dev/eng/tools/billing/old-version/v19/one-store-iap-reference/interfaces/purchaseslistener.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.
