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

165
Visualizações
Stripe keycloack parse server best practice for monthly subscription

I'm implementing stripe to a website which use parse server for the backend and keycloack for the security. Everything is running on the same server using docker.

Here's the flow to manage subscription. 1 When a user ask for checkout the backend generate a new stripe checkout session and redirect to the user. In the back I save the user ID and the checkout session ID. 2 The user does checkout and is redirected to the success url.

3 when The back recieve a checkout.session.completed, we look for the user based on checkout session and save the subscription ID Update keycloack user role to say it's a subscribed user

4 When the back get from stripe an invoice.payment_failed event or when the subscribition isn't renewed I need to remove the role on keycloack server.

I already have done the major part in an express js app but I was wondering what solution would be the best for security, reliability and maintenance :

  1. Create a paiement service in nestjs which handle the stripe events and use his own mongodb database to save paiement data( user session and subscription) and update user roles on keycloack
  2. Create a paiement service in nestjs which handle the stripe events and save user checkout session and subscription using parse server object rest api and update user roles on keycloack
  3. Do everything in parse server cloud code but Is that safe to store keycloack account into parse server cloudcode ?

Thanks for your help

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