The SalesAutopilot API is connected to the site.
There is a custom form of "booking" (php + html). After sending it, the user sees the insurance form (made on an iframe from SalesAutopilot), this form is also a payment form.
I need the data of the booking form fall into SalesAutopilot.
Submission to Salesautopilot should happen right after sending the first form (booking) submission AND again after the subsequent forms have been posted.
This way, if somebody abandons the process, their details still come into the system. o the system.
Also, the second submission of data from the payment form should update the data for the booking form.
P.S. Previously, this functionality worked. Maybe you just need to tweak something in the code.