Install dependencies npm install Run node index.js Use curl "http://localhost:1337/api/payment?wait=2&result=failure" or curl "http://localhost:1337/api/payment?result=success"