12-09-2020 03:11 PM
public readonly string[] Skus = { "CPTIER1", "CPTIER2", "CPTIER3", "CPTIER4" };
public void GetIapItems(Action successCallback, Action<string> failureCallback)
{
string debugStr = "**** Oculus.GetIapItems: ";
foreach (var sku in Skus)
{
debugStr += "\n" + sku;
}
Debug.Log(debugStr);
IAP.GetProductsBySKU(Skus).OnComplete(msgProductList =>
{
if (msgProductList.IsError)
{
string errorMsg = msgProductList.GetError()?.Message ?? "Error getting products by sku";
Debug.LogError("OculusGetIapItems: " + errorMsg);
failureCallback?.Invoke(errorMsg);
return;
}
OculusItems = msgProductList.GetProductList();
debugStr = "**** msgProductList.GetProductList(): " + msgProductList.GetProductList().Count;
foreach (var oculusItem in OculusItems)
{
debugStr += "\n" + oculusItem.Sku + " -- " + oculusItem.Name + " -- " + oculusItem.FormattedPrice;
}
Debug.Log(debugStr);
successCallback?.Invoke();
});
}
Solved! Go to Solution.
01-04-2021 01:49 PM
01-03-2021 12:20 PM
01-04-2021 10:08 AM
01-04-2021 01:49 PM
01-05-2021 08:39 AM
01-16-2021 02:52 PM
03-11-2021 12:20 AM
Specifying short and long descriptions now returns the products but the price is always 0.01. Were you able to solve this issue?
11-20-2021 04:06 AM
Were you able to find out a way to get the correct returned price? It also just returns as 0.01 for me.
11-21-2021 10:13 PM
Yes, there were a few issues:
1. fill in the description
2. test using an account which doesn't belong to your oculus org
3. contact support and ask them remove your app/account from some kind of promotion for in-apps, this was the ultimate fix for me which is available only from the oculus side and only they were able to fix that (the first two steps are also required)
11-21-2021 10:48 PM
thank you! I tried 1 and 2 but no change, so will try 3.