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

a.milkovsky’s picture

Component: Code » Documentation
Status: Active » Fixed

Seems I was a bit tired yesterday :)
The answer is written on the linked page:

To create a payment form, it's easiest to create your own custom form and use payment_form_embedded() directly to get the core payment form elements, or to display payment_form_standalone() by calling drupal_get_form('payment_form_standalone'), which calls payment_form_embedded() for you.

So the solution is - embed payment form into a custom one.

Xano’s picture

Those 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.

a.milkovsky’s picture

Assigned: a.milkovsky » Unassigned
Xano’s picture

Nice meeting you last night! You can find me in the sprint rooms today if you'd like some more feedback.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.