Problem/Motivation
#3489666: PHP error trying to add a new checkout flow without payment module installed introduced a checkout pane to be shown when the commerce_payment is not installed. However, the logic is applied in reverse. As a result, the payment is processed twice.
Steps to reproduce
Setup a commerce site with Commerce payment. Notice the the duplicate Payment process in the checkout flow:

Proposed resolution
Remove the duplicate checkout pane
Remaining tasks
- Write a merge request
- Review
- Commit
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2025-06-30 at 16.27.41.png | 25.24 KB | idebr |
Issue fork commerce_webform_order-3533217
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
idebr commentedSettings to 'Needs work' to fix the test failures
Comment #4
divyansh.gupta commentedWorking on it!!
Comment #5
divyansh.gupta commentedMade some changes in tests, now the pipeline's all green,
Please review!!
Comment #6
facine commentedThe logic is fine, what is wrong is the comment. If the commerce_payment module does not exist we cannot process payments.
The wrong comment is in the checkout pane.
The fix should be:
- Update the comment in: \Drupal\commerce_webform_order\Plugin\Commerce\CheckoutPane\PaymentProcess
- Make sure that only one of the two checkout panes is active in the checkout flow.
Thanks for reporting the issue.
Comment #7
divyansh.gupta commentedMade some changes.
Please review
Comment #9
facine commentedMerged! It looks great, thanks @divyanshgupta