- Issue created by @e5sego
After a visitor has placed/payed his order, the shop may has to refund several items in several steps. The "Refunded" amount should sum up all refunds on /admin/commerce/orders/%ID/payments, but it doesn't in a reliable way.
1. Customer places an order for e.g. 7 EUR and pays via PayPal.
2. Shop admin refunds 1 EUR on this order. "Refund" amount is 1 EUR (correct, screenshot 2).
3. Another refund of 2 EUR is made on the same order. After saving the refund, the "Refound" amount is 3 EUR (correct, screenshot 3). But after reloding the same page, it shows just 2 EUR (false, screenshot 4).
4. If I try to add onother refund an message "An error occurred while refunding the payment." is displayed and a log entry containing a message (containing "RESOURCE_NOT_FOUND") is created in drupal.
I took a lock at the correspendending "Incoming webhook request" at the drupal log. The second request has an "amount" of 2 EUR and an "total_refunded_amount" of 3 EUR. This could be the source of this bug; the total_refunded_amount matters. If I remove the Weebhook ID, anything seems working fine related to this issue.
Active
1.0
PayPal Checkout