I want to implement a seamless payment integration.
I need a possibility to create some custom forms and steps in checkout process.
Like fill in Credit card data, review entered data etc.
Currently I've found only possibility to add form elements in payment_configuration_form_elements_callback and save them using payment_configuration_form_elements_callback_validate.
Also I've found "Create and display a payment form (optional)" at https://www.drupal.org/node/1808000
Do you have an example of additional payment forms?
Is it possible to create additional forms, steps, form when you review entered data before payment?
Comments
Comment #1
a.milkovskySeems I was a bit tired yesterday :)
The answer is written on the linked page:
So the solution is - embed payment form into a custom one.
Comment #2
XanoThose callbacks you already found are for form elements that are specific to payment methods. You will have to build your own form indeed and then embed everything else into it. Look at how the
paymentform
module does this for an example.Comment #3
a.milkovskyComment #4
XanoNice meeting you last night! You can find me in the sprint rooms today if you'd like some more feedback.