I use October. An order page has been created where all the information is collected. Began to bind the payment system. To use it, you need to send a POST request with the amount to their server. Question: how simultaneously, on one page to implement and record the necessary data in the database and then redirect to the payment system? As I understood from the examples, in October, when processing forms, AJAX is used exclusively, how from onOrder () - will the AJAX function redirect to the payment system? PS method = "POST" action = "..." work, but then you cannot write data to the database

  • It's simple. You send a request through ajax to your server. There the script sends a request to the server of the payment system. The result is written to the database and returns a response with the redirect address in the form of json. On the client side, you need to redirect to the address that came from the server. - ArchDemon
  • Thanks, I'll try to do it) - Titamik

0