Skip to content

Payment Gateway made with Razorpay integration with ReactJS as frontend and Express.js in node.js env as backend

License

Notifications You must be signed in to change notification settings

Samya-S/paymentGateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payment Gateway

Made with Razorpay integration and ReactJS as frontend

Table of Contents

Installation

  1. Clone the repository:

    git clone git@github.com:Samya-S/paymentGateway.git

    Make sure you have SSH keys setup in your machine

  2. Navigate to the project directory:

    cd paymentGateway
  3. Install dependencies:

    In the frontend directory

    cd frontend
    npm i

    In the backend directory

    cd backend
    npm i

    Make sure to have nodejs and npm installed

Defining environment variables

  1. In the frontend directory:

    REACT_APP_RZPAY_KEY_ID = '<your razorpay api key id>'
    REACT_APP_BACKEND_HOSTING_DOMAIN = '<your backend hosting domain>'
  2. In the backend directory:

    RZPAY_KEY_ID = '<your razorpay api key id>'
    RZPAY_KEY_SECRET = '<your razorpay api key secret>'

Run dev environment

To run the frontend:

  1. Navigate to the frontend directory:

    cd frontend
  2. Use the following command to run:

    npm start

To run the backend:

  1. Navigate to the backend directory:

    cd backend
  2. Use the following command to run:

    nodemon index.js

    or alternatively

    npm start

About

Payment Gateway made with Razorpay integration with ReactJS as frontend and Express.js in node.js env as backend

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published