ここでは Unity ゲームが IAP (アプリ内課金) ストアとインタラクトするために必要なデジタルレコードと関係の構築手順について説明します。Unity IAP の購入 API がターゲットです。
アプリ内課金 (IAP) は、お金とデジタルプロダクトとを取引する過程です。プラットフォームのストアでは、デジタルプロダクトである製品を購入することが可能です。プロダクトには、たいてい文字列データタイプである ID と、有効な期間を表すタイプが与えられています。タイプは、消費型 (再購入可能) と非消費型 (1度だけ購入可能) が一般的です。Tizen Seller Store (Tizen Store とも呼ばれます) は消費型と非消費型に制限されています。
Unity IAP 機能を実装するコードを書きます。詳しくは Unity IAP 初期化 と Integrating Unity IAP with your app を参照してください。環境に慣れ、初期の Tizen Seller Store のアイテム設定を簡単にするために、IAP Demo のテストシーンとスクリプト(Purchasing package をインポートしたときにインストールされています) を使用することもできます。
ここでは、Commercial Tizen Seller Office のアカウントがすでに設定されていて、Tizen Seller Store にアプリケーションを加えることに慣れていると仮定します。詳細は Commercial Seller Request Guide の Tizen Seller Office Guide Download セクション とストア内課金の Seller Office Guide を参照してください。 これらのドキュメントにアクセスするには、Tizen Store: Seller Office で、アカウントにログインした状態でなければなりません。IAP を設定するのに必要な Item のサブメニューにアクセスするには、Commercial アカウントを設定する必要があります。
IAP インテグレーションの基本的手順を、以下の順番で説明します。
アプリケーションの登録
IAP アイテムの設定
テスト
デプロイ
Tizen のアプリケーションを Tizen Store: Seller Office で登録します。
まだ、商用アカウントを持っていない場合はリクエストします。処理が完了するまでに 1 日以上かかる場合があります。詳細は、Tizen Seller Office Guide Download を参照してください。
Add New Application を選び、アプリケーションのタイトルとデフォルトの言語を入力します。
3.Upload a new binary をクリックし .tpk
ファイルをアップロードします。後でバイナリを更新する必要がある場合は、新しいビルドを作成する前に Unity でのゲームのバージョン番号を更新することも必要です。
Tizen Seller Office で、ゲームに IAP を設定します。
Item Group に 1 つ以上のアイテムを加えます。Tizen Seller Store は、各アイテムに固有の Item ID (現在、000000596733
のような 12 文字の数字) を与えます。プラットフォームにまたがる購入を簡易化するため、アプリケーションにプロダクトを追加するときは、Tizen Seller Store の Item ID をストア特定の ID として使用します (詳しくは Defining products を参照してください)。
Tizen Seller Store のアイテムリストを見直します。
ConfigurationBuilder.AddProduct
関数で、ストア特有の ID を使用します。Tizen 用の Unity IAP は、Tizen Seller の Beta Test モードを通したテストをサポートします。ベータテストのアプリケーションは、トランザクションを実行できますが、実際の課金はありません。Beta Test タブで、ベータテスターを手動でアプリケーションに加える必要があります。
詳しくは Tizen の Beta Test Guide documentation for additional を参照してください。
ベータテストを開始してから、実際にベータテスターにアプリケーションの使用が可能になるまでに時間がかかる場合があります。ベータテスターにアプリケーションの使用が可能になったときに、IAP アイテムも購入可能になります。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.