Skip to content

Instantly share code, notes, and snippets.

@dsternlicht
Created July 24, 2018 07:37
Show Gist options
  • Select an option

  • Save dsternlicht/1f2a03370568f0dc37e480d181b4bede to your computer and use it in GitHub Desktop.

Select an option

Save dsternlicht/1f2a03370568f0dc37e480d181b4bede to your computer and use it in GitHub Desktop.
Creating a PayPal IPN Endpoint With NodeJS - app.js
import express from 'express';
import bodyParser from 'body-parser';
import routes from './server/routes';
const app = express();
// ...
// Parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }));
// Parse application/json
app.use(bodyParser.json());
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
// App routes
routes(app);
// ...
module.exports = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment