> 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>
