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.

Comments

carstenG created an issue. See original summary.

carsteng’s picture

StatusFileSize
new949 bytes

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

StatusFileSize
new964 bytes

Forgot to attach the patch...

jsacksick’s picture

StatusFileSize
new1.12 KB

Alternative version.

jsacksick’s picture

StatusFileSize
new1.12 KB

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.