# 02. 사전준비

## **상품 등록하기**  <a href="#id-02." id="id-02."></a>

* 상품 등록과 관련된 내용은 아래 가이드를 참고 부탁 드립니다.&#x20;
  * [상품 등록과 관리](/dev/docs/apps.md)&#x20;

## **라이선스 키(Public Key) 및 OAuth 인증 정보 확인하기**  <a href="#id-02.-publickey-oauth" id="id-02.-publickey-oauth"></a>

공통정보 >  라이선스 관리 메뉴에서 라이선스 키와 서버 API를 위한 OAuth 인증 정보를 확인할 수 있습니다.&#x20;

* 라이선스 키 : 원스토어가 전달한 인앱결제 내역의 위변조 여부를 확인하는 용도로 사용합니다.
* OAuth 인증 정보 : 원스토어 서버 API를 사용하기 위한 인증 용도로 사용합니다.

## **원스토어 인앱결제 Sample App 다운로드** <a href="#id-02.-sampleapp" id="id-02.-sampleapp"></a>

원스토어 인앱결제를 사용하기 위해 필요한 샘플 앱을 [깃허브(github](https://github.com/ONE-store/onestore_iap_release))에서 다운로드 받을 수 있습니다.&#x20;

## **인앱결제 라이브러리 추가하기**  <a href="#id-02." id="id-02."></a>

{% hint style="warning" %}
원스토어 IAP SDK 저장소는 **2026년 4월 1일부터 Maven Central로 이관됩니다.**

자세한 내용은 [원스토어 IAP SDK 저장소 이관 안내](https://dev.onestore.net/devpoc/support/news/noticeView.omp?noticeId=33714)를 참고하시기 바랍니다.
{% endhint %}

프로젝트의 최상위 *build.gradle* 파일에 원스토어 결제 라이브러리 종속 항목을 추가합니다.

```
allprojects {
    repositories {
        ...
        mavenCentral() 
    }
}
```

앱의 *build.gradle* 파일에 원스토어 결제 라이브러리 종속 항목을 추가합니다.

```gradle

dependencies {
    implementation "com.onestorecorp.sdk:sdk-iap:21.04.00"
}

```

## **원스토어 앱 설치하기**  <a href="#id-02." id="id-02."></a>

개발자나 사용자가 원스토어 인앱결제를 이용하기 위해서는 원스토어 앱이 필요합니다.

* [원스토어 앱 다운로드 안내](/dev/policy/download.md)


---

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