Hi, an update, finally managed this morning to get my PC to run ‘npm install’ at which point it added 840 dependencies, so I thought here we go, but no.
That made no difference, I still get “Payment Failed” and in the console, it is saying require is not defined.
After a bit more digging I can see that “require” is declared in ‘globals.d.ts’ which is a Node.js ‘types’ file.
There it says
declare var require: NodeRequire;
this is an interface that extends Node.JS.Require { }
I must admit I’ve now no idea what this means and why it’s complaining that its not defined, VS2019 can clearly see it in globals.d.ts
cheers