![]() If the restore succeeds, Unity IAP invokes the On Purchase Complete (Product) function on the IAP Button associated with that Product. Unity IAP will always invoke the On Transactions Restored (Boolean, String) function on the Restore IAP Button with the result and the associated error message if the restore fails. You may want to hide the Restore button on other platforms. If you've been charged for the purchase and you still can't restore it, contact the app developer for support. Restart your device: Restart your iPhone. This functionality works on the iOS App Store, the Mac App Store and the Windows Store. Make sure in-app purchases are allowed on your device. When a user selects this button at run time, the button calls the purchase restoration API for the current store. On Transactions Restored script example: public void OnTransactionsRestored(bool success, string? error)ĭebug.Log($"TransactionsRestored: ") (Optional) Drag the GameObject with the restore transactions script onto the event field in the component’s Inspector, then select your function from the dropdown menu. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |