Version: 2023.2
言語: 日本語
Apple App Store と Mac App Store の設定
Windows ストアの設定

Google Play ストアの設定

前書き

ここでは、Unity のゲームでアプリ内課金ストアを利用するのに必要な、デジタルレコードと関連を構築する手順を説明します。Unity IAP 課金 API がターゲットとなります。

アプリ内課金 (IAP) は、お金とデジタルプロダクトとを取引する過程です。プラットフォームのストアでは、デジタルプロダクトである製品を購入することが可能です。プロダクトには、たいてい文字列データタイプである ID と、有効な期間を表すタイプが与えられています。タイプは、subscriptionconsumable (再購入可能)、 non-consumable (1度だけ購入可能) が一般的です。

Google Play ストア

はじめに

  1. Write a game implementing Unity IAP. See Unity IAP Initialization and the Sample IAP Project.

  2. 後で、Google Play デベロッパーコンソールで使用するために、手元にゲームのプロダクト ID を控えておきます。

    gold50
    gold50
  3. リリース版で署名された Android APK をビルドします。

    TIP: キーストアファイルが安全に保存されているかを確認してください。オリジナルのキーストアは アプリの更新で Google Play のアプリを公開するときに常に必要です。

    ヒント: 変更した APK を Developer Console に読み込むことを最初に要求されずにサイドローディングできるよう、ローカルテストの間は最後にアップロードした APK の Bundle Version Code を再利用します。Android Player の設定を参照してください。

アプリケーションの登録

ゲームをパブリッシュする Google アカウントを使って、Google Play デベロッパーコンソール で Android アプリケーションを登録します。

NOTE: This guide uses the Google Play License Testing approach for testing in-app purchase integration.

  1. Choose Create app.

    All apps
    All apps
  2. Give the application an App name and select the appropriate options for your game.

    Create app
    Create app
  3. Navigate to Testing/Closed testing in the left nav and choose Create track. Select your APK and upload it. Also complete the basic Dashboard requirements, upload screenshots and add a Short and Full description. You can also create an Internal test track.

    Closed testing
    Closed testing

アプリ内課金システム情報の追加

Now that you have uploaded our first binary, you can add the IAP products.

  1. Navigate to In-app Products and choose Create product.

    In-app products
    In-app products
  2. Define the Product ID , product details and price. Remember to activate the product after saving.

    Managed product_ を選択して、consumable (消費型) か non-consumable (非消費型) を特定できます。 Subscription も Unity IAP でサポートされています。

NOTE: The “Product ID” here is the same identifier used in the game source code, added to the [Unity IAP ConfigurationBuilder] instance via AddProduct() or AddProducts(), like “gold50”.

50goldcoins
50goldcoins

IAP のテスト

Add your testers to License Testing.

  1. Navigate to All Apps on your Google Developer dashboard.

  2. Select Settings/License Testing. Add each Google Account email address. Save changes.

License testing

NOTE: There may be a delay of several hours from the time you publish the APK. 
  1. When available, share the Join on Android link with testers. Ensure that testers can install the application from the store.

Note: To test updates retaining permission to purchase IAPS’s for free, you may side-load applications, updating the existing store-downladed APK install.

My closed Track
My closed Track
  1. To test the IAP, make a purchase on a device logged in with a Tester Google Account. A modified purchase dialog box appears to confirm the fact this product is under test and is free.

    WARNING: If this dialog box does not appear, then the Tester Google Account will be charged real money for the product.

Apple App Store と Mac App Store の設定
Windows ストアの設定