My client wants a checkout review and payment pane in a modal window, structured and styled a very specific way. Getting a form into a modal isn't an issue, as I've done that many times, but I'm curious about the best way to present the checkout payment pane where the credit card info is entered, and how to advance the checkout to the next step after they enter their payment info.
It seems like I build my form to display in the modal, and within a section of the form, I call commerce_checkout_pane_load() to load my payment pane, and it looks like DC takes it from there. The client was only specific about the review and payment display. On the form, I have other order info from custom order fields surrounding the payment pane.
Is it as simple as this? Or, is the best way to do it when the user is ready to check out, I have some callbacks hooked in to call my specific review and payment forms? I think I have the concept, so I'm just trying to get some clarity. The flow I need is:
- From the cart page, they click check-out and it calls the my modal custom form.
- They review the form contents displaying the custom fields
- The click from there and, are taken to a modal payment form where they enter their cc info into the payment pane. After that, they continue along the normal flow and let Rules handle the confirmation email, and some other tasks I have configured.