I'm having this same issue, but with StoreKit 1, also on macOS, for what it's worth. Would be great to see this fixed, there seems to be no way to test purchases initiated outside the app without this.
Topic:
App & System Services
SubTopic:
StoreKit
Tags: