interrupted purchase cannot be tested successfully

I followed https://developer.apple.com/documentation/storekit/in-app_purchase/testing_in-app_purchases_with_sandbox?language=objc to test.
Begin testing, from step 1 to step 9, all works well. But I didn't receive any new transaction after clicking 'agree' of Term&Condition.

Here is my logs:
show the Term&Condition, then close after clicking agree:
default 12:33:31.505551-0500 itunesstored RemoteWebViewOperation: Remote handle did deactivate
default 12:33:31.505625-0500 itunesstored RemoteWebViewOperation: Remote SKUI view controller presented
default 12:33:31.505690-0500 itunesstored RemoteWebViewOperation: [9ECA2517] Finished


Then it seems error occurs:
default 12:33:32.649411-0500 itunesstored Task <45575746-E504-4338-A330-8342AA4E1F5D>.<109> received response, status 200 content K
default 12:33:32.650362-0500 itunesstored Task <45575746-E504-4338-A330-8342AA4E1F5D>.<109> response ended
default 12:33:32.650448-0500 itunesstored Task <45575746-E504-4338-A330-8342AA4E1F5D>.<109> done using Connection 117
default 12:33:32.650629-0500 itunesstored ISStoreURLOperation: [2E728C47] Received response [1.66s]. StatusCode: 200; (null); Environment: SB-ST
default 12:33:32.650734-0500 itunesstored ISStoreURLOperation: [2E728C47] Attempting to determine the account identifier for https://sandbox.itunes.apple.com/WebObjects/MZFinance.woa/wa/buyProduct.
default 12:33:32.650816-0500 itunesstored Task <45575746-E504-4338-A330-8342AA4E1F5D>.<109> summary for task success {transactiondurationms=1629, responsestatus=200, connection=117, protocol="http/1.1", domainlookupdurationms=2, connectdurationms=201, secureconnectiondurationms=131, requeststartms=207, requestdurationms=0, responsestartms=1627, responsedurationms=1, requestbytes=4734, responsebytes=4249, cachehit=0}
default 12:33:32.650880-0500 itunesstored ISStoreURLOperation: [2E728C47] authenticatedAccountDSID = 20104893555
default 12:33:32.658035-0500 itunesstored "Starting save for account <private>."
default 12:33:32.735719-0500 itunesstored "Completed account save: YES - (null)."
default 12:33:32.735925-0500 itunesstored ISStoreURLOperation: [2E728C47] Attempting to determine the account identifier for https://sandbox.itunes.apple.com/WebObjects/MZFinance.woa/wa/buyProduct.
default 12:33:32.736124-0500 itunesstored ISStoreURLOperation: [2E728C47] authenticatedAccountDSID = 20104893555
default 12:33:32.737306-0500 itunesstored Task <45575746-E504-4338-A330-8342AA4E1F5D>.<109> finished successfully
default 12:33:32.737888-0500 itunesstored ISStoreURLOperation: [2E728C47] Finished loading: [634584812.73, 1.74s] <private>
default 12:33:32.737960-0500 itunesstored ISStoreURLOperation: [2E728C47] Attempting to determine the account identifier for https://sandbox.itunes.apple.com/WebObjects/MZFinance.woa/wa/buyProduct.
default 12:33:32.738024-0500 itunesstored ISStoreURLOperation: [2E728C47] authenticatedAccountDSID = 20104893555
default 12:33:32.738079-0500 itunesstored ISLoadURLBagOperation: [4A653CB7] Running
default 12:33:32.741763-0500 itunesstored ISLoadURLBagOperation: [4A653CB7] Finished
default 12:33:32.769548-0500 itunesstored ISStoreURLOperation: [78978257] Running
default 12:33:32.769602-0500 itunesstored PurchaseProtocolDataProvider: Error handler resolved with type: 0
default 12:33:32.769638-0500 itunesstored ISStoreURLOperation: [3C03EFFD] Attempting to determine the account identifier for https://xp.apple.com/report/2/xp_its_main?eventTime=1612892012738&buttons=OK:Cancel&code=MZCommerce.TermsNotAccepted&eventType=dialog&message=Apple%20Media%20Services%20Term&eventVersion=1&dsId=20104893555&baseVersion=1&storeFrontHeader=143455-6,29.
default 12:33:32.769982-0500 itunesstored ISStoreURLOperation: [2E728C47] Completed successfully


Final result is: in our app, the popup 'to show Term&Conditions with cancel / ok buttons' shows again. No matter clicking cancel or ok, it has the same action - close popup.


BTW, I also tested with Xcode StoreKit. The problem is: our app cannot directly run debug, we usually run the app on device and choose 'attach process'. The StoreKit transaction managers seems doesn't support 'attach process', right?

I experienced the very same issue and figured out that you have to unselect Interrupt Purchases for This Tester on AppStoreConnect right before agreeing the fake general conditions update modal. If you do so, the new transaction is created as described in Apple documentation.

I consider it a bug but if it's not, Apple should mention it as an intermediate step between steps 8. and 9. of the Interrupted Purchase test scenario.

Hope it helps,
Aurélien.
interrupted purchase cannot be tested successfully
 
 
Q