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)
Express middleware (
(req, res, next)). Reads the raw body itself, so you do not needexpress.json()/express.urlencoded()for the payment routes; if a body parser ran first, its result is used. Unexpected errors go tonext(error).