Based on https://www.drupal.org/project/commerce/issues/2890727.

We have custom PaymentInformation and PaypmentProcess Panes in place.
The default panes are in disabled area. Therefore it is not possible to save the checkoutflow anymore.

Proposed solution: check for _disabled step_id in pane configuration in order to avoid that.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

carstenG created an issue. See original summary.

carstenG’s picture

Attaching the patch.

carstenG’s picture

Status: Active » Needs review
jsacksick’s picture

The patch should also cover the case where either one of the 2 panes isn't even present.

The attached patch should also cover that and skip validation if:

  • Either the PaymentInformation or the PaymentProcess pane isn't present.
  • One of the 2 panes (PaymentProcess is tested) is on the disabled step.
jsacksick’s picture

Forgot to attach the patch...

jsacksick’s picture

FileSize
1.12 KB

Alternative version.

jsacksick’s picture

Sorry the patch in #6 isn't correct, here's a new one.

bojanz’s picture

Title: Cannot save Checkout flow » Payment checkout flow validation fails when payment panes are disabled or missing

Better title.

astringer’s picture

Confirming, the patch from #7 worked for me.

  • bojanz committed 2ff34df on 8.x-2.x authored by carstenG
    Issue #3050770 by jsacksick, carstenG: Payment checkout flow validation...
bojanz’s picture

Status: Needs review » Fixed
Issue tags: -Novice

Committed, thanks everyone.

Status: Fixed » Closed (fixed)

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