Node.js Express Paytm Payment Gateway Integration Full Tutorial with Source Code 2020

You are currently viewing Node.js Express Paytm Payment Gateway Integration Full Tutorial with Source Code 2020

 

Welcome folks today in this tutorial we will be integrating paytm payment gateway inside node.js and express. This will be a full tutorial from scratch with full source code. A step by step youtube video is also shown below.

 

 

Live Demo of App

 

 

The Live Demo of App can be seen at this live url

 

 

Get Started

 

 

In order to get started you first of all need to install these dependencies inside your node.js project

 

npm init -y

 

npm i express

 

npm i --save-dev nodemon

 

After installing these dependencies make your index.js file and copy paste the following code to it

 

 

 

 

 

Now inside your root of your node.js project create the index.html file which we will load once the application starts for the very first time

 

 

index.html

 

 

 

 

 

 

 

 

 

 

Now after this you can see the form containing four fields name,email,phone number and amount of money. After this we will make the post request inside the index.js like this

 

 

 

 

 

 

Now you need to go to the Offical Paytm Github Repository and copy the checksum.js and crypt.js files from this and paste this inside your Paytm folder like this. Also one additional file you need to create which is called config.js

 

 

 

 

 

 

checksum.js

 

 

 

 

 

crypt.js

 

 

 

 

 

config.js

 

 

 

 

 

Inside this config.js file you need to replace the values of your paytm dashboard like this

 

 

 

 

 

These details will be different for you. Just replace the respective details inside your application.

 

 

 

 

 

 

 

 

 

DOWNLOAD SOURCE CODE

 

 

 

Leave a Reply