Order balance displays old value immediately after refund

Created on 19 January 2024, 8 months ago

Describe your bug or feature request.

After a payment is refunded, the user is redirected back to the payment page which shows the order balance at the bottom right of the screen. The order balance displays the old (incorrect) value, until the page is reloaded, then the new (correct) value shows up.

If a bug, provide steps to reproduce it from a clean install.

  1. Install commerce and commerce_stripe
  2. Create an order with a payment
  3. As an admin, edit the order and refund the payment.
  4. When the admin is redirected back to the payment page, the order balance is incorrect.
πŸ› Bug report
Status

Active

Version

2.0

Component

Payment

Created by

πŸ‡ΊπŸ‡ΈUnited States wxactly

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @wxactly
  • πŸ‡ΊπŸ‡ΈUnited States wxactly

    Patch attached.

    N.B. This is likely not a perfect solution to this bug, but it works for me, and hopefully highlights the underlying problem to someone who can land a more proper patch!

Production build 0.71.5 2024