Node.js Express Instamojo API Payment Gateway Integration + Invoice Email in PDF Full Tutorial For Beginners 2020

You are currently viewing Node.js Express Instamojo API Payment Gateway Integration + Invoice Email in PDF Full Tutorial For Beginners 2020

 

Welcome folks today in this tutorial we will be integrating the instamojo payment gateway inside our node.js and express app. All the source code of the application is given below. A step by step youtube video is also shown below.

 

 

 

 

 

 

Get Started

 

 

In order to get started we need to install these dependencies which are given below

 

npm i express

 

npm i nodemon

 

npm i instamojo-nodejs

 

Now create your app.js file which is the starting point of the node.js application

 

 

 

 

Now you need to replace your private keys and auth keys from instamojo dashboard like this

 

 

 

 

 

 

 

Now you need to make the index.html file for our application

 

 

 

 

 

 

 

 

 

Now we need to make the post request to the /pay route to initiate the instamojo link

 

 

 

 

In this block of code we are setting the options such as redirect_url and also send_email option and also the purpose

 

 

 

 

 

 

Now if you give the details and click the button then it will say email is sent to check the payment link of instamojo

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Leave a Reply