Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6112393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:44:25+00:00 2026-05-23T14:44:25+00:00

I am working on a shopping cart with several payment options using different APIs.

  • 0

I am working on a shopping cart with several payment options using different APIs.

The flow I want is that the user chooses which payment option to use and the according form shows.

On submit the form fields regarding address etc should be saved in my DB and the fields regarding payment is sent with POST to the payment handler api.

It is important that the user only have to click once so the save-in-db has to be squeezed in between the click on the submit button and when the data is sent to the payment server.

I have thought of a redirect where all data gets POSTED to and that save the data in DB and redirect to payment server BUT how do I redirect along with POST data (GET is not working unfortunately).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:44:25+00:00Added an answer on May 23, 2026 at 2:44 pm

    You can’t send a traditional Location: header to the HTTP client to do a redirect and include POST data. What you could do instead is:

    • use an AJAX request to fetch the correct target URL
    • update the form action with that URL via JavaScript (in the AJAX callback function)
    • submit the form
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on a shopping cart that the user can add/remove order
Im working with a shopping cart plugin and that uses a basic form on
I'm working on a shopping cart in a website and I have my items(which
I am working on a shopping cart which is installed locally via xampp. The
I'm working on a simple shopping cart. When the user clicks checkout the URL
I am working on a Django project, using the Satchmo shopping cart software. I
I'm working on an eCommerce website, in which the Shopping Cart page needs to
I have a working shopping cart system in which items are added to the
I'm working on testing a shopping cart, checkout, payment process on Zend Framework with
I'm working on an app that has a shopping cart. When I add a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.