Hello,
I'm trying to submit the first version of my app, but I keep getting a rejection because the reviewer is failing to purchase my non-consumable in-app purchase. Everything works fine in sandbox mode, but something is different for them which makes it fail with an SKError.Code == .unknown and localizedDescription of 'Cannot connect to iTunes Store'. I've resubmitted many many times and asked for clarification, but I'm not getting any more info. I'm not doing anything fancy, from the screenshot they sent me it seems the SKProduct request goes through fine, but the purchase fails. The in-app purchase is showing 'Waiting for Review' in app store connect, not sure that has anything to do with it.
Has anyone seen something like this? What do I do?
It turns out I was calling things in the wrong order, you need to follow https://developer.apple.com/documentation/storekit/in-app_purchase/setting_up_the_transaction_observer_for_the_payment_queue *exactly*