I've looked around and it seems like several people are having this issue but no-one seems to have solved it:
Adding Apple in-app purchase to Electron HTML/JS app
https://github.com/electron/electron/issues/3745
https://discuss.atom.io/t/osx-in-app-purchases-in-electron/22885
Some people suggest using this Node to Objective-C bridge to do it:
https://github.com/TooTallNate/NodObjC
Other people suggest using this in-app library, but from what I can see, it only validates receipts:
https://github.com/voltrue2/in-app-purchase
Has anyone actually managed to implement in-app purchases in an Electron app for the Mac App Store?
How did you do it?
If no one has done it, is it simply impossible to do?