I am encountering a difficulty with in-app purchases (IAP) in Unity, within the iOS sandbox atmosphere. It appears to be permitting a participant to re-purchase a non-consumable merchandise they already purchased. Beneath are the main points:
Surroundings:
- Unity Model: 2022.3.55f1
- Unity In-App Buying Model: v4.12.2
- Gadget: iPhone (15, iOS 18.1.1)
- Connection: Wi-Fi
- iOS Settings: In-App Purchases set to “Allowed” initially
Downside Conduct:
-
I tried to buy a non-consumable merchandise for the primary time. The fee is efficiently accomplished by coming 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 appropriately detected that I couldn’t make purchases as a result of 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 totally free?”
-
The problem is: Will it deduct cash for the second time, and why is the system permitting the person to buy the identical non-consumable merchandise a number of instances after buying it as soon as?
Is that this the anticipated conduct for Unity In-App Buying, or is there one thing I may be lacking in dealing with non-consumable purchases on this situation?
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 uncertain why the system is providing to let the person buy it once more.
I admire any insights into whether or not that is anticipated conduct or if I want to regulate how I deal with the acquisition circulation.