How to detect if virtual purchase is successfull?

I am using virtual purchase for revive player, but there is no method for checking if the virtual purchase is successfull or not. How can I check it? I have read this documentation: Class MakeVirtualPurchaseResult - Economy v3.1.2

Hello,

Here are some more docs on our SDK in case you have not seen it :
https://docs.unity.com/ugs/en-us/manual/economy/manual/SDK-purchases#MakeVirtualPurchase

If the method returns a MakeVirtualPurchaseResult, the purchase was successful.
If the method throws an EconomyException, it was not successful.

I hope it answers your questions

1 Like