i use this code to init the purchase in my game start, but it seen no work in sandbox(xcode run), and it work
in testfight tester?
IEnumerator waiuntilInit()
{
InitializePurchasing();
yield return new WaitUntil(() => IsInitialized());
UnityEngine.Purchasing.Product monthPurchased = m_StoreController.products.WithID(SUSidpermonth);
UnityEngine.Purchasing.Product yearPurchased = m_StoreController.products.WithID(SUSidperyear);
if (monthPurchased != null)
{
if (monthPurchased.hasReceipt)
{
isPurchased = true;
}
}}
else
{
noPay();
}
any ideas?