Skip to content

AnthonyTC89/razorpay-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Razorpay demo

Project Create with the Stack MERN and RAZORPAY

Live Demo . Report Bug · Request Feature

Screenshot Screenshot

Table of Contents

About The Project

A Personal Project with all the requirements to do a payment with RAZORPAY service.

Built With

Pre-Installation

  1. npm version 6.14.4 or more
  2. node version 10.19.0 or more

Installation

  1. clone the repository razorpay-demo
  2. cd in to the folder and run npm install
  3. create the file .env in the root with the next Variables
*   HTTPS=true
*   USERNAME_MONGODB=`username`
*   PASSWORD_MONGODB=`password`
*   CLUSTER_MONGODB=`cluster-name`
*   DATABASE_MONGODB=`database-name`
*   REACT_APP_RAZORPAY_KEY_ID=`razorpay_key_id` from dashboard
*   REACT_APP_RAZORPAY_KEY_SECRET=`razorpay_key_secret` from dashboard
  1. run npm run build to have all the files from the react-app.
  2. run npm start
  3. go to localhost:3001

API Routes

  • Use Postman. (recommended)

  • (GET) /api/orders/

  • (GET) /api/payments/

Scripts

  1. npm start: Start the app with node.js, express, mongodb with the result of the react built.
  2. npm react: Start only the react app without the back-end.
  3. npm build: Create the main files of the front-end.
  4. npm test: Check the test files of the react app.
  5. npm server: Similar of "npm start" running with nodemon.

Future Features

  • Manage Currencies

Contact

About

Personal Project about payment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published