From a53a67c9a4544c7697d9f584ac293a1a8b6a480c Mon Sep 17 00:00:00 2001 From: hardcodder Date: Wed, 19 May 2021 14:51:31 +0530 Subject: [PATCH] Production razorpay keys --- controllers/payment.js | 4 ++-- nodemon.json | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/controllers/payment.js b/controllers/payment.js index 555dbf5..57ff4fa 100644 --- a/controllers/payment.js +++ b/controllers/payment.js @@ -9,8 +9,8 @@ const { getAllCoupons } = require('./coupon'); //test credentials of razorpay const instance = new razorpay({ - key_id : 'rzp_test_tLx9c6GiWjKcsl' , - key_secret : '4Cf52d6C3amkptdRLCTdC2sT' + key_id : process.env.KEY_ID , + key_secret : process.env.KEY_SECRET }) ; module.exports.postVerify =async (req , res , next) => { diff --git a/nodemon.json b/nodemon.json index 4a040aa..3eff58c 100644 --- a/nodemon.json +++ b/nodemon.json @@ -2,6 +2,11 @@ "env" : { "MONGO_USER":"Cantilever", "MONGO_PASSWORD" :"Cantilever" , - "MONGO_DEFAULT_DATABASE" :"myFirstDatabase" + "MONGO_DEFAULT_DATABASE" :"myFirstDatabase" , + "KEY_ID" : "rzp_live_aD9j5WLBGtdQxt" , + "KEY_SECRET" : "o9BDCwYcpNcHyFL5yjiY7OWG" , + "EMAIL" : "AKIA2G7743RRTZMVXE3X" , + "HOST" : "email-smtp.us-east-1.amazonaws.com" , + "PASS" : "BJSjV3jArJfsnk1LhFc/hUmisEyEtbLNGgrRbv0noh8c" } } \ No newline at end of file