IAP Sandbox - No Products

Hello, I've been trying to get the sandbox environment working for in-app purchases, but so far, no luck. I can use a storekit config file to simulate purchases just fine. The item is a single consumable product.

I've checked that my product ID matches, followed the advice tendered to other forum users, created a sandbox user, all to no avail.

I've signed into the app store using my sandbox account on one phone - I can't get the "Sandbox User" option to appear on the second after attempting to make a purchase (per https://developer.apple.com/documentation/storekit/testing-in-app-purchases-with-sandbox ).

What I'm wondering is, do I need to get the in-app-purchase approved/released through App Review before I can even perform testing or something? I've signed all agreements, set up our banking information, everything seems to be in order, but I just cannot get the StoreKIt products call to return anything. ( let products = try await Product.products(for: productId) )

Is there anything else I can check? I've also checked everything here: https://forums.developer.apple.com/forums/thread/652077

Thanks!

I've been trying to get the sandbox environment working for in-app purchases, but so far, no luck. I can use a storekit config file to simulate purchases just fine.

You mention two different environments in your statement. Which environment you use may affects your product request.

StoreKit Testing in Xcode is a local test environment for testing in-app purchases without requiring a connection to App Store servers. When you enable StoreKit Testing in Xcode, the test environment uses information you configure for your in-app purchases in the active StoreKit configuration file in your Xcode project when your app calls StoreKit APIs. You can sync your StoreKit configuration file with App Store Connect if you already have in-app purchased configured for your app in App Store Connect.

When you disable StoreKit Testing in Xcode or don't use it, testing your in-app purchases happens in the sandbox environment. Apple review your in-app purchases in the sandbox. TestFlight uses the sandbox environment for in-app purchases. The sandbox uses information you configure for your in-app purchases in App Store Connect when your app calls StoreKit APIs.

What I'm wondering is, do I need to get the in-app-purchase approved/released through App Review before I can even perform testing or something? I

Testing In-App Purchases in the sandbox environment doesn’t require uploading your app binary to App Store Connect as stated in Testing In-App Purchases with sandbox.

I've checked that my product ID matches, followed the advice tendered to other forum users, created a sandbox user, all to no avail.

To test in the sandbox:

IAP Sandbox - No Products
 
 
Q