5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Google Playアプリ内課金テストで認証エラーが出てしまうケースについて

Last updated at Posted at 2016-08-08

課金テストの際に、課金画面に行ったかとおもいきや、「認証が必要です。Googleアカウントにログインしてください。」と言われることが良くあると思うのですが、今回はそのうちの1ケースについて書きます。

「定期購入」のアイテムに対して、launchPurchaseFlowを呼んでしまった場合

課金のアイテムには「アプリ内管理アイテム」と「サブスクリプションアイテム」の2種類があり、アイテムの種類によって購入の際に呼び出すメソッドが変わります。

アイテムの種類 呼び出すメソッド
アプリ内管理アイテム launchPurchaseFlow
サブスクリプションアイテム launchSubscriptionPurchaseFlow

これを間違えてしまった場合、認証エラーというくくりになってしまうので、定期購入のアイテムを設定していて認証エラーになった場合に確認してみてください。

 参考サイト

Androidで課金テストをするために必要な事
アプリ内課金の実機テストのワナ

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?