Query:
I am encountering a difficulty with in-app purchases (IAP) in Unity, particularly for a non-consumable product within the iOS sandbox setting. Under are the small print:
Surroundings:
Unity Model: 2022.3.55f1
Unity In-App Buying Model: v4.12.2
Machine: iPhone (15, iOS 18.1.1)
Connection: Wi-Fi
iOS Settings: In-App Purchases set to “Allowed” initially
Drawback Habits:
-
I tried to buy a non-consumable merchandise for the primary time. The cost is efficiently accomplished by getting into the password.
-
I then background the sport app and navigate to the iOS Settings to set In-App Purchases to “Do not Permit.”
-
After returning to the sport and both closing or killing the app, I attempt to buy the identical non-consumable merchandise once more.
-
I checked canMakePayments() via the Apple configuration, and the app accurately detected that I couldn’t make purchases because of the restriction.
-
I then navigate again to Settings and set In-App Purchases to “Permit.”
-
Upon returning to the sport, I attempt buying the non-consumable merchandise once more. A pop-up seems, saying, “You’ve already bought this. Would you wish to get it once more free of charge?”
-
The problem is: Will it deduct cash for the second time, and why is the system permitting the consumer to buy the identical non-consumable merchandise a number of occasions after buying it as soon as?
Is that this the anticipated habits for Unity In-App Buying, or is there one thing I is perhaps lacking in dealing with non-consumable purchases on this state of affairs?
Extra Data:
I’ve confirmed that the “In-App Purchases” are set to “Allowed” earlier than trying the acquisition once more.
I perceive that non-consumable merchandise shouldn’t be bought greater than as soon as, so I’m not sure why the system is providing to let the consumer buy it once more.
I respect any insights into whether or not that is anticipated habits or if I would like to regulate how I deal with the acquisition circulate.