01-25-2017 10:54 AM
SKU | Name | Description | Currency | Amount | Item Type |
MILLION | 1 Million dollars | This will give you 1 Million dollars to spend on upgrades! | USD | 1.99 | Consumable |
Solved! Go to Solution.
01-25-2017 04:32 PM
01-25-2017 11:08 AM
01-25-2017 04:32 PM
01-25-2017 05:08 PM
06-09-2017 12:02 AM
06-09-2017 03:10 AM
public void BuyPowerBallsPressed()
"You already own this item. You have purchased this item before.''
{
#if UNITY_EDITOR
m_gameController.AddPowerballs(1);
#else
IAP.LaunchCheckoutFlow(CONSUMABLE_1).OnComplete(LaunchCheckoutFlowCallback);
#endif
IAP.ConsumePurchase(CONSUMABLE_1); //Added the IAP.ConsumePurchase() Method
}
private void LaunchCheckoutFlowCallback(Message<Purchase> msg)
{
if (msg.IsError)
{
PlatformManager.TerminateWithError(msg);
return;
}
Purchase p = msg.GetPurchase();
Debug.Log("purchased " + p.Sku);
m_gameController.AddPowerballs(3);
}
Above is my new code. Finally it can buy the product multi-times.
While the problem is:If I buy it again immediately after the last time buy action without doing anythings else, it still tell me that
So do you met with this problem before and how to handle it?