Can I use AppTransaction to verify purchase of a paid macOS app?

I've tried to use AppTransaction.shared / AppTransaction.refresh() to verify that my app has been purchased from the Mac App Store.

It works when testing a release build on my Mac, using a Sandbox Apple ID.

But when I submit the app for review, the reviewer says it doesn't work. The error message returned by AppTransaction is "Unable to Complete Request", which is pretty vague.

I get the same error when I try to use a real Apple ID for testing on my machine, so I have been wondering if maybe the problem is that App Review is testing a build that doesn't accept Sandbox Apple IDs?

My app doesn't have a provisioning profile, could it be that this is the problem? As a Mac app developer, I'm not sure what provisioning profiles are good for, I thought they were only useful for iOS.

Has anybody successfully submitted a Mac app that uses AppTransaction?

I am in the same boat. I am wondering if anyone has ever successfully used AppTransaction in production. The code in my app is the same, in essentials, to the example in the docs, and it works perfectly in the Sandbox. It does not work in production, and has caused Review to reject my app. I'm at a bit of a loss as to where to go from here.

Extensive testing has led me to suspect that AppTransaction.shared and AppTransaction.refresh() never do anything with Production, and only ever check the App Store Sandbox for receipts.

Here's a link to someone else with the same issue. Scrolling own to the answers section, you'll see that they, too, suspect AppTransaction just simply doesn't work in production. https://stackoverflow.com/questions/75700010/macos-storekit2-using-apptransaction-shared-triggers-user-login

It does not work in production, and has caused Review to reject my app.

Doesn’t work in production, or just doesn’t work in app review?

I'm at a bit of a loss as to where to go from here.

Submit an update that includes the check but continues anyway if it fails. This will pass app review. Send yourself some diagnostic data to tell you whether it is passing or failing for end users. Or even just something that you can test yourself with an app-store-purchased copy of the app.

sorry to revive this year-old post, but has this been resolved with subsequent releases of macOS?

I am facing similar issue th the same error. @jabakobob have you resolve this and how? Many thanks

Can I use AppTransaction to verify purchase of a paid macOS app?
 
 
Q