Classic/VPC環境で利用できます。
ONE Storeビルドのためのコンソールご利用ガイドです。
GAMEPOT連携以外のコンソールの使用方法は、次をご参照ください。
- ONE Storeガイド文書
- ONE store Developers Console: https://dev.onestore.co.kr/
コンソールに In-App商品を追加
-
ONE store developer centerにアクセス > APPS > プロジェクを選択 > In-App情報 > 管理商品 > [In-App商品を登録] ボタンをクリックします。

-
In-App商品情報を入力し、 [保存] ボタンをクリックします。

- In-App ID: In-App固有の ID(product id)
- In-App商品のタイトル: In-App商品名(ユーザー表示される名称)
- In-App商品の種類: GAMEPOT SDKでは「管理商品」タイプのみサポートしているので、必ず「管理商品」を選択
- In-Appの基本価格: 韓国ウォン基準で VAT込みの価格を入力
決済テスター追加の適用
-
ONE store developer centerにアクセス > APPS > プロジェクを選択 > In-App情報 > 決済テストをクリックします。
-
テスト IDの照会: 決済テストを行う ONE Storeのアカウント(メール情報)を入力し、 [照会] ボタンをクリックします。
- ONE Storeのアカウントが照会されると、下部の「テスト IDの照会結果」部分が表示されます。
-
照会された結果から決済環境を「sandboxまたは常用決済」にして登録します。
- In-App商品の追加後、初回のテスト時は sandbox環境に設定します。

- In-App商品の追加後、初回のテスト時は sandbox環境に設定します。
GAMEPOTダッシュボードにストア情報を登録
-
GAMEPOTダッシュボード > プロジェクトの設定 > ストア > ONE Storeメニューを順にクリックします。

-
ストア登録時に必要な情報は、In-App情報 > 管理商品 > In-App APIの管理 で確認します。

- Server Key: ライセンスキーを入力
- Client ID: Oauth認証情報の Client IDを入力
- Client Secret: Oauth認証情報の Client Secretを入力
GAMEPOTダッシュボードの In-App商品を追加
GAMEPOTダッシュボード > 購入 > アプリ内購入 > [追加] ボタンをクリックします。

- 状態: 有効化状態で登録(使用しない商品は無効化)
- ストア: In-App登録対象のストアを選択
- 商品名: In-Appの商品名
- 商品 ID: ストアコンソールに入力した In-Appの ID(Product Id)
アプリの設定
Kotlin Gradleの設定
-
プロジェクトの
settings.gradle.ktsファイルに Maven Centralが含まれているか確認します。dependencyResolutionManagement { repositories { ... google() mavenCentral() maven(url = "https://repo.nbase.io/repository/nbase-releases") } } -
プロジェクト(Module: app)の build.gradle.ktsファイルに SDK依存関係を追加します。
dependencies { ... implementation("io.nbase:nbase-adapter-billing-onestore:3.0.5") } -
AndroidManifest.xmlファイルに以下の queriesを追加します。
<manifest> <queries> <intent> <action android:name="com.onestore.ipc.iap.IapService.ACTION" /> </intent> <intent> <action android:name="android.intent.action.VIEW" /> <data android:scheme="onestore" /> </intent> </queries> ... <application> ... </application> </manifest>
Java Gradleの設定
-
プロジェクト(Module: project)の
build.gradleファイルに、Maven Centralと NBaseリポジトリを追加します。allprojects { repositories { ... google() mavenCentral() maven { url "https://repo.nbase.io/repository/nbase-releases" } } } -
プロジェクト(Module: app)の build.gradleファイルに SDK依存関係を追加します。
dependencies { ... implementation("io.nbase:nbase-adapter-billing-onestore:3.0.5") } -
AndroidManifest.xmlファイルに以下の queriesを追加します。
<manifest> <queries> <intent> <action android:name="com.onestore.ipc.iap.IapService.ACTION" /> </intent> <intent> <action android:name="android.intent.action.VIEW" /> <data android:scheme="onestore" /> </intent> </queries> ... <application> ... </application> </manifest>
Unity Gradleの設定
NBase SDK Unity 3.0.18 以降では、Unityエディタの Tools > GamePotSDK > Dependency Managerから OneStore Billingを選択し、Apply Dependenciesをクリックします。適用後に作成された XMLにサービス終了したrepo.onestore.co.krリポジトリが含まれている場合は、当該<repository>項目を削除します。
手動で設定する場合は、Assets/NBaseSDK/Editor/NBaseSDKDependencies.xmlファイルに以下の定義を追加します。
```xml
<!-- # ONE Store -->
<androidPackage spec="io.nbase:nbase-adapter-billing-onestore:3.0.5">
<repositories>
<repository>https://repo.nbase.io/repository/nbase-releases</repository>
</repositories>
</androidPackage>
```
Assets > External Dependency Manager > Android Resolver > Force Resolve を1回実行します。
プロジェクトのAndroidManifest.xmlファイル内に以下のqueriesを追加します。
xml <manifest> <queries> <intent> <action android:name="com.onestore.ipc.iap.IapService.ACTION"/> </intent> <intent> <action android:name="android.intent.action.VIEW"/> <data android:scheme="onestore"/> </intent> </queries> ... <application> ... </application> </manifest>
アダプタの推移的依存関係として、ONE store IAP SDK 21.02.01が含まれます。ONE store IAP SDKは Maven Centralに移行されました。サービス終了したhttps://repo.onestore.co.kr/repository/onestore-sdk-publicリポジトリは追加しないでください。
トラブルシューティング
Q. ONE Storeで決済しようとすると「responseCode: 3, message: An error occurred during the purchase process.」という エラーが発生します。
A. ONE Storeログインアカウントが決済テスターとして追加されているかご確認ください。