> For the complete documentation index, see [llms.txt](https://onestore-dev.gitbook.io/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onestore-dev.gitbook.io/dev/eng/tools/billing/v21/references/interfaces/querypurchaseslistener.md).

# QueryPurchasesListener

public interface QueryPurchasesListener\
com.gaa.sdk.iap.QueryPurchasesListener

\
A listener that notifies when a purchase history request is completed.

\
Public methods <a href="#id-en-querypurchaseslistener-publicmethods" id="id-en-querypurchaseslistener-publicmethods"></a>
-------------------------------------------------------------------------------------------------------------------------

***

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

void onPurchasesResponse(IapResult, List\<PurchaseData> purchases)\
Called to notify when the requested work for the purchase history has been completed.

| **Parameters:** |                                                                       |
| --------------- | --------------------------------------------------------------------- |
| iapResult       | Request results                                                       |
| purchases       | Unused purchase data history (monthly auto-renewal products included) |
