use .env
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ const db = require('../app/db')
|
||||
const logger = require('../app/logger');
|
||||
//const User = require("../app/model/cardModel.js");
|
||||
|
||||
const stripe = require('stripe')('sk_test_51JwvOXCMmfol61TLadZlDf2rxq6Q1IC50JITRixcbyig8T2zdqpO8HY2NEcwNHacRQKQpTf6JGh7haqUVEH0rccA00eFht1ewi');
|
||||
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);
|
||||
|
||||
var cards = {
|
||||
createCard: async function (req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user