Skip to content

Instantly share code, notes, and snippets.

View shankcode's full-sized avatar
💻
Love to code

Shashank Yadav shankcode

💻
Love to code
View GitHub Profile
@shankcode
shankcode / initiate_txn
Created February 4, 2021 11:58 — forked from amalj07/initiate_txn
Route for initiating transaction. (POST req to /paynow)
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();
@shankcode
shankcode / README-Template.md
Created July 26, 2020 16:42 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

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.

Prerequisites