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

238
Visualizações
Redirect user on form submit after API response in the background

I am not sure how it can be done.

What I am trying to do is.

I have a Paypal subscription form.

when a user clicks on Subscribe, An Ajax call is made to Paypal API and an authorization token is obtained.

Now I want to redirect the user/customer to Paypal after the token is received to complete the subscription with the authorization token.

Now my question is I can make the ajax call and get the response,

But after that how I can redirect the customer to paypal alongwith urlencoded-data is the question.

Update

The second request will be like this which should redirect to Paypal at the same time.

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=InsertTokenHere

over 4 years ago · Santiago Trujillo
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