When i get the receipt → Payload->json:
{\"orderId\":…,\"packageName\":…,\"productId\":…",\"purchaseTime\":…,\"purchaseState\":0,\"developerPayload\":…}
Do we follow the number like google, or we use other meaning? right now, i want to know if the state is purchased or pending?
Another question is in developerPayload, there is a field “is_updated”, what is the meaning of this field? what for? do we have any document to explain these field
I ask all this questions is to regconize subscription state like “In Grace Period” or “On Hold”, if anyone happen to know how to implement in Unity IAP please let me know.
Are you returning Pending from ProcessPurchase? When you initialize IAP, all products left in Pending state will trigger ProcessPurchase, are you seeing this? Put Debug.Log statements in all your purchase methods, and provide the device logs as an attachment here. I am not familiar with the fields that you mention, you will want to inspect them during your testing to confirm. How To - Capturing Device Logs on Android
Purchase state will be false at this point because the transaction hasn’t completed (you’re still in ProcessPurchase). You will only be able to check this flag during IAP initialization. See the Sample IAP project https://discussions.unity.com/t/700293