Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

127
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda