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

159
Views
crear pago con el token de una tarjeta guardada y 3d seguro

He integrado Stripe para pagos. Logré guardar una tarjeta al obtener el token, creé el cliente y asocié el token con el cliente. Ahora estoy tratando de hacer pagos secundarios de back-end (nodo) usando este código:

 const createCharge = await stripe.charges.create({ amount, currency: 'eur', customer: user.stripeCustomerId, card: cardId, description: `userId: ${user._id}`, });

Si la tarjeta no requiere autenticación funciona perfectamente mientras que si requiere autenticación obviamente falla con el error: authentication_required . Intenté agregar autenticación con 3D Secure en la aplicación, pero no tuve éxito. Esto es lo que intenté, pero siempre obtengo errores y no se realiza la autenticación.

 const { paymentIntent, error } = await confirmPayment(clientSecret.client_secret, { payment_method_options:{ "card": { "installments": null, "network": null, "request_three_d_secure": "any" } }, type: 'Card', cardDetails: this.props.cardList[0].cardId, payment_method:'creditCard', setupFutureUsage: 'OffSession', });

¿Alguien tiene idea de lo que estoy haciendo mal? ¡Gracias!

about 4 years ago · Juan Pablo Isaza
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!