Hi!
In my game, some items can be unlocked by completing levels. This is managed in custom data in playfab. I'm currently only allows the client to click on the purchase button if the item is unlocked, then I call PlayFab.PlayFabClientAPI.PurchaseItem from Unity to complete the purchase. However, I'd like to add a server side validation to prevent a hacked client from completing purchases even if the item is locked. What would be a good way to do this? Can I abort the transaction using cloud script for an event? Should I write a "PurchaseItem" custom cloud script function that runs the custom validation then calls the real PurchaseItem?
Thanks!