Refund of a contribution is recorded twice, results in contact owing money
I am cancelling many events and having to refund lots of contributions. When I open a contribution record in order to deal with it, initially I just see a contribution with its associated Stripe unique id. So far, so good.
Now I go into the Stripe dashboard, search for that unique ID and refund it. Back in CiviCRM, it looks like the Stripe extension has noticed that a refund was made, because it shows up in a line item. But the contribution record itself is still marked "Completed". So it is basically active in CiviCRM even though in Stripe and in my bank account the money is gone.
So now I mark the contribution as "Refunded". Now when you look in CiviCRM, the contribution record is properly marked as refunded and no longer shows in the user's contributions year-to-date totals, but there are 3 rows for the contribution: one original contribution and two refunds.
This seems to be a problem, because after doing this, the event registration shows the participant owing double, instead of zero. Marking the registration as cancelled does not change this.
Civi 5.21.1 with Stripe Extension 6.32 and MJW Shared 0.6.
Thank you