Thanks for taking the time to help. I am having a ready head scratcher with a single page checkout system for CT.
I have built a accordion type checkout system. First panel is the billing address and then once validated it submits via Ajax and opens the next stage - shipping etc.
Each panel has a CT checkout form in it that submits, updates info and shipping details. Each stage of the checkout works well and data is updated in the backend.
However, the last step - Actually confirming and payment, won't submit and redirect to the payment provider. I have noticed that the XID is empty. In fact, if I look at the code, the first form "billing info" has an XID. When shipping is opened, that form has a blank XID, but it submits OK.
The response coming back from the POST has different XIDs in each form. But if I view source, it doesn't show - XID is just blank.
This checkout worked before 2.7. I understand that EE has had some work done on the XID for 2.7.
I need to launch this site tomorrow and really could do with some help.
Here is a JS Fiddle with my code. I really hope someone can help. http://jsfiddle.net/KByhm/
Thanks again for taking the time to look.