I tried to google with “unity simulateAskToBuy” and got only one result, which was the changelog that simply states that this feature exists. How am I supposed to use it? I enabled it, but I do not get a call to the deferred purchase listener.
I know it’s an experimental feature, but at the moment it’s quite difficult to even test it.
1 Like
Unity IAP has implemented the simulatesAskToBuyInSandbox property that Apple has defined:
However, from multiple conversations on StackOverflow and the Apple Developer Forums, it sounds like feature that is not currently supported in the Apple Sandbox.
"With regards to Ask-To-Buy support, there is no support for this function in the Sandbox nor in the TestFlight environment. “Ask to Buy” is not an API implementation, but a support process implemented by iTunesConnect which requires StoreKit interaction with a specific iTunes account. This support only exists in the production environment. I suggest that you submit an enhancement request - via the Apple Developer bug report web page - http://bugreport.apple.com"
Source: Sandbox parent authorization | Apple Developer Forums
https://forums.developer.apple.com/thread/5703
https://stackoverflow.com/questions/25510678/how-to-test-skpaymenttransactionstatedeferred
1 Like
Thanks for the explanation and quick reply!