# 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: 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/classes/iapresult.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.
