Skip to content

Issue #3538209: Introduce redesigned merchant-facing payment form with dynamic route override.

Closes #3538209: Introduce redesigned merchant-facing payment form with dynamic route override

  • Added a new PaymentForm class to provide a redesigned, unified payment form for merchants.
    • Presents order summary, payment status, and method selection in a more intuitive layout.
    • Aims to replace the legacy PaymentAddForm implementation.
    • Includes stubbed placeholders for inline payment method handling (on-site/off-site support).
  • Introduced PaymentFormRouteSubscriber to dynamically override the 'entity.commerce_payment.add_form' route.
    • Allows environments to toggle between the legacy and redesigned forms using a setting in settings.php.
    • Defaults to the new PaymentForm unless $settings['use_two_step_add_payment_form'] = TRUE is set, in which case the legacy two-step PaymentAddForm is used.
  • Deprecated the legacy PaymentAddForm with appropriate annotations and a reference to the issue.
  • Registered the route subscriber as a service in commerce_payment.services.yml.
Edited by Adrian M.

Merge request reports

Loading