One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
app.post('/paynow', [parseUrl, parseJson], (req, res) => { | |
if (!req.body.amount || !req.body.email || !req.body.phone) { | |
res.status(400).send('Payment failed') | |
} else { | |
var params = {}; | |
params['MID'] = config.PaytmConfig.mid; | |
params['WEBSITE'] = config.PaytmConfig.website; | |
params['CHANNEL_ID'] = 'WEB'; | |
params['INDUSTRY_TYPE_ID'] = 'Retail'; | |
params['ORDER_ID'] = 'TEST_' + new Date().getTime(); |