I do not think this question was answered. The question is not about where to fetch the receipt, rather it is a question about how to configure Storekit for IOS in XCode.
Reiterating for the original author - Where does the following configuration code belong?
As mentioned in [https://developer.apple.com/documentation/xcode/setting_up_storekit_testing_in_xcode?language=objc)
#if DEBUG
		let certificate = “StoreKitTestCertificate”
#else
		let certificate = “AppleIncRootCertificate”
#endif
The problem here (and in various postings around the internet) is that the documentation requires this code snippet...somewhere, but does not say specifically where to add it.
^This is a problem with the documentation.