A demo of Razorpay Node Sdk with React.js showcasing the payments and refunds scenarios:
git clone https://github.com/Resolution-1/react-razorpay.git
cd react-razorpay
Get your Razorpay API keys [
key_id
andkey_secret
] for test environment variables from here, https://dashboard.razorpay.com/#/app/keys
Replace [`key_id` and `key_secret`] in REACT_APP_RAZORPAY_ID and REACT_APP_RAZORPAY_PASSWORD in .env.local file
npm install or yarn install
Copy the contents from sample.env
to .env
and replace the dumb characters(xxxxx
) with your Razorpay key
and the Razorpay Password, which you will be creating soon(local default is already there in the file).
npm start or yarn start