Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

114
Vistas
how to set redirect link for when user updates subscription stripe

So i have the stripe subscription portal enabled on my node.js app. It is working fine, but when someone updated there plan, it says it's completed, but it doesn't redirect BACK to my app unless i hit the back button. I was wondering if when they hit confirm changes, then instead of redirceting back to the portal page, go to my app instead. here's the code i have.

    app.get('/create-customer-portal-session', authCheck, async (req, res) => {
    const session = await stripe.billingPortal.sessions.create({
      customer: req.session.customerid,
      return_url: 'http://localhost:3000/account',
    });
  
    res.redirect(session.url);
  });

haven't found anything online about this, so not sure if it is doable, but just wondering! Thanks

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The user can click the Back button or the portal link (i.e., the return_url value) to go back to your app. There is no way for Stripe portal page to automatically redirect to your page upon payment confirmation.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda