> 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/tools/billing/v21/references/classes/iapresult.md).

# IapResult

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

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

In-app Purchase API 응답의 코드 및 메시지가 포함된 객체 입니다.

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

***

| **Nested classes** |                                                                                                                |
| ------------------ | -------------------------------------------------------------------------------------------------------------- |
| class              | <p><a href="/pages/k5KezgPljt02qd8DyWtk">\[C]IapResult.Builder</a></p><p>IapResult의 인스턴스를 쉽게 만들기 위한 빌더입니다.</p> |

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

***

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

```
int getResponseCode()
```

In-app Purchase API 응답 코드를 반환합니다.

| **Returns:** |                                                                                                                             |
| ------------ | --------------------------------------------------------------------------------------------------------------------------- |
| int          | [\[A\]PurchaseClient.ResponseCode](/dev/tools/billing/v21/references/annotations/purchaseclient.responsecode.md)에 해당되는 결과 값 |

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

```
String getMessage()
```

In-app Purchase API 응답 메시지를 반환합니다.

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

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

```
boolean isSuccess()
```

In-app Purchase API 응답 코드가 성공(PurchaseClient.ResponseCode.RESULT\_OK) 인지를 나타냅니다.

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

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

```
boolean isFailure()
```

In-app Purchase API 응답 코드가 실패 인지를 나타냅니다.

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

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

```
[C]IapResult.Builder newBuilder()
```

IapResult의 인스턴스를 만들기 위한 빌더를 생성합니다.

| **Returns:**                                                                             |             |
| ---------------------------------------------------------------------------------------- | ----------- |
| [\[C\]IapResult.Builder](/dev/tools/billing/v21/references/classes/iapresult.builder.md) | <p><br></p> |

<br>


---

# 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/tools/billing/v21/references/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.
