Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • doesn't seem to work for me, the arrow creates a syntax error Commented Mar 16, 2019 at 0:01
  • 31:48 error Parsing error: Unexpected token, expected "{" on the line app.post('/pay-now', async function (req, res) => { Commented Mar 16, 2019 at 0:08
  • Hmm, don't know then, can you not use an arrow function? And try a "normal" function? Does this work? Commented Mar 16, 2019 at 0:10
  • the answer by @DougStevenson was able to fix the problem, thanks for the help though! Commented Mar 16, 2019 at 0:17