> 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/old-version/v19/one-store-iap-reference/classes/iapresult.md).

# IapResult

```
public final class IapResult extends Object
```

```
java.lang.Object
    ↳ com.gaa.sdk.iap.IapResult
```

<br>

It is an object with the code and message of in-app purchase API responses included.

## Summary <a href="#iapresult-summary" id="iapresult-summary"></a>

***

| **Nested classes** |                                                                                                                                                                                  |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| class              | <p><a href="https://dev.onestore.co.kr/wiki/en/doc/iapresult-builder-5833448.html">IapResult.Builder</a></p><p>It is a builder for easy creation of the IapResult instances.</p> |

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

***

### getResponseCode <a href="#iapresult-getresponsecode" id="iapresult-getresponsecode"></a>

```
int getResponseCode()
```

It returns in-app purchase API response codes.

| **Returns:** |                                                                                                                                                      |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| int          | Response code value corresponding to [PurchaseClient.ResponseCode](https://dev.onestore.co.kr/wiki/en/doc/purchaseclient-responsecode-5833457.html). |

### getMessage <a href="#iapresult-getmessage" id="iapresult-getmessage"></a>

```
String getMessage()
```

It returns the message of in-app purchase API responses.

| **Returns:** |             |
| ------------ | ----------- |
| String       | <p><br></p> |

### isSuccess <a href="#iapresult-issuccess" id="iapresult-issuccess"></a>

```
boolean isSuccess()
```

It shows whether in-app purchase API response codes are a success (PurchaseClient.ResponseCode.RESULT\_OK).

| **Returns:** |             |
| ------------ | ----------- |
| boolean      | <p><br></p> |

### isFailure <a href="#iapresult-isfailure" id="iapresult-isfailure"></a>

```
boolean isFailure()
```

It shows whether in-app purchase API response codes fail.

| **Returns:** |             |
| ------------ | ----------- |
| boolean      | <p><br></p> |

### newBuilder <a href="#iapresult-newbuilder" id="iapresult-newbuilder"></a>

```
 newBuilder()
```

It generates a builder for creating the IapResult instances.

| **Returns:**                                                                               |             |
| ------------------------------------------------------------------------------------------ | ----------- |
| [IapResult.Builder](https://dev.onestore.co.kr/wiki/en/doc/iapresult-builder-5833448.html) | <p><br></p> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://onestore-dev.gitbook.io/dev/eng/tools/billing/old-version/v19/one-store-iap-reference/classes/iapresult.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
