Veifying Subscription

Greetings!

Trying to find a way to check at the Awake of an App is subscription bought by user or not, using Codeless IAP, I found deprecated tools only.

I managed to make selling the sub work, but, perhaps, someone could explain how should an App react to the fact that subscription is already bought?

What class and method to use, to make it know about sub status?

I would recommend against Codeless, it will likely be deprecated soon. Instead, you could start with the Sample IAP Project here https://discussions.unity.com/t/700293/4 Get this sample working as-is and publish to Google Play for testing. Once that is working, you’ll check the receipts in IAP initialization to confirm if the subscription is active https://docs.unity3d.com/Packages/com.unity.purchasing@4.1/manual/UnityIAPGoogleConfiguration.html

Thank you! Everything now works just fine with it.

However, I’ve tried to make an UpgradeSubscription and it all went fine, except… the expiration date is the same as the non-upgraded variant.

I literally have 3 subs: 1, 3 and 6 month. In everything else they are pretty the same. I’ve upgraded sub from 1 to 3, to 6 and it all went fine, still, PlayMarket says the next payment will go in a month, not in 6.

Is there a way to change expiration date manually and should I even try to?

I’m not sure what PlayMarket is. Is this for Google or Apple?

Sorry, Google Play Store.

If you are looking at the Google Play dashboard for this end-user, it should show that the user now owns this upgraded product. Can you confirm that is the case? When you now reinstall the game and Restore occurs for the user, are they seeing ProcessPurchase trigger for this upgraded subscription? This is to confirm that the upgrade itself worked, then we can look at the expiration date. But the behavior may be expected too. Your first payment for the longer subscription may occur when the current subscription is/was due.

Yeah, upgrade definitely worked. The user owns an upgraded product. The only problem is that the new sub has the expiration date of the old one, accordingly to the dashboard.

If you are seeing this on the Google dashboard as well, then it is likely expected. Unity IAP has no control over the Google dashboard or expiration dates. These all come from Google. Please share a screenshot of where/how you are checking the expiration date.