fix: spelling errors in API routes
This commit is contained in:
1 parent
4831ae523c
commit
8d00259af5
1 file changed
+3
-2
+3
-2
@@ -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",
|
||||||
|
|||||||
Reference in new issue
Block a user