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
Finally, I added in-app purchase directly to Electron.
See https://electronjs.org/docs/tutorial/in-app-purchases
I have implemented this solution and it works in development (not yet tested in production).
require('electron').shell.openItem
or require('child_process').spawn('./InAppPurchase.app/Contents/MacOS/InAppPurchase');
in your Electron app to start the in-app purchase.This is definitely not a clean solution but it seems to work...
I think that it can also be done with NodObjC. However, this lib is very heavy compared to the first solution.
Adding in-app purchase directly to Electron.
I will keep you informed if I can release my Electron app on the Mac Apple Store with IAP or if I found another solution.