Thank you for the explanation. I will probably use a third-party database (firebase) for payments.
Using firebase, different operations can be done on the client side, without disturbing the main server. I think this is very useful for a smoother user experience.
How do I schedule a function one time in a future?
-
I need to schedule a function one time in a a certain future. I use this:
var timeout=setTimeout(function(){ function(); console.log("UNO"); }, 10000); clearTimeout(timeout);
But I read in the console the value "UNO" immediatly, and not after 10000 ms. Anyone can help me and suggest me how can I resolve this problem?