コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Android の RevenueCat で「購入しようとしたアイテムが見つかりませんでした。」

概要

_makePurchase {
    "error": {
        "code": 5,
        "message": "The product is not available for purchase.",
        "readableErrorCode": "ProductNotAvailableForPurchaseError",
        "readable_error_code": "ProductNotAvailableForPurchaseError",
        "underlyingErrorMessage": "Error updating purchases. DebugMessage: . ErrorCode: ITEM_UNAVAILABLE.",
        "userCancelled": false
    },
    "userCancelled": false
}

Google Play のサンドボックス環境で RevenueCat の
Purchases.PurchaseProduct を実行した時に
上記のエラーが発生する現象に遭遇した。

ライセンステスターのアカウントでログインしていないことが原因だった。

ライセンステスターのアカウントでログインしたら正常に購入できた。