Added payments schema and connected to stripe BOD-146 BOD-147

This commit is contained in:
Patrick Fic
2020-06-05 08:20:04 -07:00
parent 90152fc613
commit 52849e1af7
37 changed files with 822 additions and 9 deletions

View File

@@ -80,6 +80,10 @@ app.post("/render", renderHandlebars.render);
var fb = require("./server/firebase/firebase-handler");
app.post("/notifications/send", fb.sendNotification);
//Stripe Processing
var stripe = require("./server/stripe/payment");
app.post("/stripe/payment", stripe.payment);
//Serve React App if in Production
if (process.env.NODE_ENV === "production") {
app.use(express.static(path.join(__dirname, "client/build")));