fix: spelling errors in API routes

This commit is contained in:
Leon Xu committed 2022-05-07 15:00:02 -07:00
1 parent 4831ae523c
commit 8d00259af5
1 file changed
+3 -2
+3 -2
View File
@@ -11,8 +11,9 @@ app.use(cors({ origin: true }));
app.use(express.json()); app.use(express.json());
// API Routes // API Routes
app.post("/paymens/create", async (req, res) => { app.post("/payments/create", async (req, res) => {
const total = request.query.total; const total = req.query.total;
const paymentIntent = await stripe.paymentIntents.create({ const paymentIntent = await stripe.paymentIntents.create({
amount: total, // subunits of the currency amount: total, // subunits of the currency
currency: "usd", currency: "usd",