I'm facing the same problem. I'm running on macOS 12.2.1, so if this was fixed it is back. I'm guessing there's something wrong with the active account, but I already signed out of the App Store.
These are the messages that logged to the console:
<StoreKitClient: 0x7f7c7cf190f0>: Using active account. Sandbox: 1, receipt exists: NO, receipt is stub: NO
<ReceiptRefreshRequest: 0x7f7c7d9126f0>: Error fetching receipt for nl.smashbits.SmashTunes - Error Domain=com.apple.commerce.server Code=500317 "(null)"
I'm not sure which "active account" it is using, because I not prompted for it.
Topic:
App & System Services
SubTopic:
StoreKit
Tags: