StoreKit testing receipt validation

So the sandbox servers can't verify the receipt generated by the StoreKit testing. Is that something that might change in the near future?
I'm failing to see the point of doing client side verification or skipping the verification completely, if there's already server set up for the task.
I would also imagine that people would like to test the whole system, not just how the app UI reacts to the state changes.
We can't speak to future direction, however, we greatly appreciate any feedback you have around StoreKit Testing in Xcode. Can I ask you to provide that feedback here: https://feedbackassistant.apple.com/

For any server to server testing related to in-app purchases, you should make use of the Sandbox environment.

Additionally, calling the verifyReceipt endpoint directly from the client is highly discouraged. See https://developer.apple.com/documentation/storekit/in-app_purchase/validating_receipts_with_the_app_store

I may be running into the same problem as you, and I just want to confirm I'm not doing something wrong.

I'm trying to test some IAPs, but when I use a StoreKit Configuration in Xcode to use the new testing features, whenever I send my receipt data to the verification endpoint, I get this error from the server:
Code Block
["status": 21002, "exception": java.lang.IllegalStateException]


When I test a real receipt, it works as expected with a valid response from the server.

Is receipt validation not supported? I was hoping to be able to use this to simulate refunds and have my app respond accordingly. The session about this new feature made it sound like receipt validation is supported.
Testing StoreKit in Xcode allows you test your apps handling for common user events but this is a local environment and receipts will need to unlocked and validated locally, verifyReceipt does not support these locally signed App Receipts. But we appreciate the feedback on desired behavior and support. For more info: https://developer.apple.com/documentation/xcode/setting_up_storekit_testing_in_xcode
I'd like to also second this opinion. I was incredibly excited to see the testing functionalities that was added to StoreKit. StoreKit is one of the most challenging frameworks to test but also one of the most important ones for us as developers. This is why I was very disappointed to learn that I am unable to have my receipt validation be part of this testing flow. If we could somehow send these receipts to the sandbox server to get them it would make our lives as developer much easier.

Same issue here, it would be awesome to have this option supported from the Apple side.

StoreKit testing receipt validation
 
 
Q