nopSolutions / nopCommerce

ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
https://www.nopcommerce.com
Other
9.31k stars 5.33k forks source link

Multiple requests for partial refund #7015

Closed eduard-ca closed 10 months ago

eduard-ca commented 10 months ago

nopCommerce version: 4.60.5

Hi

I have the next issue with an Order Partial Refund UI:

Via NopCommerce Admin UI the admin can execute parallel partial refund requests at the same time.

Steps to reproduce the problem:

  1. Go to Admin/Orders/Edit

  2. Use the partial refund

  3. Change the amount to any for the refund Screenshot 2024-01-15 174706

  4. Submit the form via double click Screenshot 2024-01-15 174928 Screenshot 2024-01-15 175024

Note. You see an issue with the message Another transaction is in progress (error message from payment API) for the second refund request because a Payment Provider API declined the second request during the first request executing

RomanovM commented 10 months ago

This is by design. Admin can initiate many partial refunds within the order amount, and the payment plugin should check their correctness (which is what it does in your case).