craftcms / commerce-paypal-checkout

PayPal Checkout gateway for Craft Commerce.
https://plugins.craftcms.com/commerce-paypal-checkout
MIT License
5 stars 10 forks source link

"Can not refund amount greater than the remaining amount" when the entered amount is the remaining amount #81

Closed jakelapan closed 2 months ago

jakelapan commented 1 year ago

Description A customer paid using paypal gateway. The customer requested a partial refund which succeeded. Then the customer requested a full refund. When using the "Refund" button with a provided amount (which was the remaining balance that the customer paid), we received the following error: Can not refund amount greater than the remaining amount

The balance was correct, but what is interesting is I was able to find a work around by NOT entering in an amount and clicking the refund button, thus allowing the default value to be submitted (which was the same as the amount that I manually entered) and that was able to be successfully refunded.

To Reproduce How, and what happened?

  1. Place an order with paypal checkout
  2. Complete a partial refund
  3. Try to submit another refund for the balance by manually entering in the amount in the field (error thrown)
  4. Try NOT entering in an amount in the field and hut refund (success)

Expected behavior I expect the entered in value to be refunded if the balance is equal to the amount entered when trying to refund the order in full after a successful partial refund.

Additional info

nfourtythree commented 8 months ago

Hi @jakelapan

Thank you for your report. Unfortunately, I am unable to replicate this issue.

Do you remember if this was for an order that was paid for in a currency different to the base currency?

Thanks!

nfourtythree commented 2 months ago

Closing this issue as it has become stale, if you have any further information please update this issue and we can re-open and look into it.

Thanks!