Describe your bug or feature request.
We recently added order details to the payment add form, including the order items and payment history. However, the capture and refund forms are still just the amount field and a submit button.
I think the same information shown on the payment add form would be useful here, so I’d like to see these forms use the same format.

Please note that the fieldset title should be “Payment details”. We need to correct the fieldset title on the add payment form as well.
| Comment | File | Size | Author |
|---|---|---|---|
| desired-capture-payment-form.png | 35.88 KB | jsacksick |
Issue fork commerce-3569547
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 #4
jsacksick commentedWeird that the tests are failing.
Let's rename the trait to PaymentOrderSummaryFormTrait, like the following:
Also, let's add a weight to the "order_summary" form element:
Comment #5
tbkot commented@jsacksick, trait name is updated. Not sure why the test is failing for D10, I've checked it locally with the same settings (D10, PHP8.1, PHPUnit 9.6) and it works well.
Comment #7
jsacksick commented