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

231
Views
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
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!