I am encountering a problem with in-app purchases (IAP) in Unity, within the iOS sandbox surroundings. It appears to be permitting a participant to re-purchase a non-consumable merchandise they already purchased. Under are the main points:
Atmosphere:
- Unity Model: 2022.3.55f1
- Unity In-App Buying Model: v4.12.2
- System: 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 fee 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 Enable.”
-
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() by 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 “Enable.”
-
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 difficulty 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 conduct for Unity In-App Buying, or is there one thing I is likely to be lacking in dealing with non-consumable purchases on this state of affairs?
Further Info:
I’ve confirmed that the “In-App Purchases” are set to “Allowed” earlier than making an attempt 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 conduct or if I would like to regulate how I deal with the acquisition circulate.