概要
_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 を実行した時に
上記のエラーが発生する現象に遭遇した。
ライセンステスターのアカウントでログインしていないことが原因だった。
ライセンステスターのアカウントでログインしたら正常に購入できた。