Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

170
Views
cómo implementar funciones sin analizar errores

Este código me muestra un error de análisis y no puedo implementar mis funciones

 const functions = require("firebase-functions"); const express = require("express"); const cors = require("cors"); const stripe = require("stripe")( "sk_test_51LBEnTSHwAWSpySp3vUeTA3xoJfuVPSOQt3i6njS9P8NJcxGD33g0h2dLJg62FItggGrjDkXRanyfaiknMEuidzu00Gfnw1SOi" ); const app = express(); app.use(cors({ origin: true })); app.use(express.json()); app.get("/", (request, response) => response.status(200).send("hello world")); app.post("/payments/create", async (request, response) => { const total = request.query.total; const paymentIntent = await stripe.paymentIntents.create({ amount: total, currency: "inr", }); response.status(201).send({ clientSecret: paymentIntent.client_secret, }); }); exports.api = functions.https.onRequest(app);

Aquí está el error que recibí cuando intenté implementar funciones:

Aquí está el error que obtuve cuando intenté implementar funciones

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Este es un error de pelusa durante la implementación. Debe verificar su configuración de pelusa y la línea 20 en index.js como sugiere el mensaje de error.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!