I’ve been struggling with this one for a while now. I’m trying to get Unity IAP up and running - had success getting consumable and non-consumable items up and running on Android and iOS, but my work required me to change the product to a subscription. I’ve switched to code-based iap as codeless doesn’t seem to support subscriptions (at least, doesn’t allow me to check their validity).
I’m using a modified version of the BuySubscription script provided with the IAP subscription sample, I’ve created the subscription (which is active) on Google Play Console, I’ve ensured that Unity Gaming Services are definitely initialising before IAP, and I’ve switched from internal to closed testing. Still nothing.
In the editor, IAP successfully initialises, but when I hit the purchase button it often skips the fake store and automatically purchases the product (I know this is wrong, it generated the store for a while and stopped again today without explanation).
On Android, IAP fails to initialise with the reason ‘NoProductsAvailable’. The purchase button does nothing and is essentially a dummy. This has been constantly happening, no matter what I do, whether the editor version is generating the fakestore or skipping it. I’ve been searching and struggling the better part of 2 weeks and not found the answer in forum posts, documentation or sample scenes/projects. Help here would be amazing.
@harryjbushell Can you share a screenshot of the Subscription details page on your Google Developer dashboard? I believe my base plan needed to be auto-renewing.
Switched to an auto-renewal, it totally worked! Thanks so much.
Is there any way in which we could terminate the auto-renewal of the subscription from our end, or is cancelling renewal only doable by the player?
Side note: I appreciate that the IAP and it’s documentation are all very work-in-progress, but it’s been extremely frustrating and challenging to use - especially with the lack of guidance & documentation. Knowing that the subscription only works on code based IAP (& for auto-renewing subs only) would have saved me weeks of stress.
I really do appreciate your help, I just wish there was enough information not to have needed it - is there somewhere I can share that feedback or is this the appropriate channel?
The user would need to cancel the renewal. Google has made subscription changes in the last few months, we are trying to keep up! We plan to better support their improved billing API over the next few months, along with StoreKit2 on Apple.