Const
Alias for plain node:http servers: http.createServer(toNodeHandler(payment))
node:http
http.createServer(toNodeHandler(payment))
Express middleware ((req, res, next)). Reads the raw body itself, so you do not need express.json() / express.urlencoded() for the payment routes; if a body parser ran first, its result is used. Unexpected errors go to next(error).
(req, res, next)
express.json()
express.urlencoded()
next(error)
Alias for plain
node:httpservers:http.createServer(toNodeHandler(payment))