Incorrect refund calculation in Payout Split - 'Value in recipients * is different than operation value *.'
Payments
•
ID: 1072285
Backlog
Published on7/29/2024
•
Last updated on7/29/2024
1 min read
Summary
When calling a refund (in transactions with payout split) the error below can happen with divergent amounts:
(Example)
Vtex.Practices.ExceptionHandling.ValidationException: Value in recipients (45.00) is different than operation value (299.99). at Vtex.PaymentGateway.PaymentSplit.RecipientsBuilder.ValidateRecipientsValue(List`1 recipients, Decimal value)...
Note that this KI is different from the below (calculation issue related to rounding - the values difference is small):
Simulation
This seems to happen when the cart doesn't have marketplace products but we were not able to simulate this error.
Workaround
NA, merchants need to request manual refund directly with acquirer.