Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jakelapan opened this issue Aug 11, 2023 · 2 comments
Labels
ℹ️ status: need more info When waiting for user to supply database or more information.

Comments

@jakelapan
Copy link

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

  • Craft version: Craft Pro 4.4.15
  • Commerce PayPal Checkout version: 2.1.2
  • Commerce version: 4.2.11
  • PHP version: 8.2.8
  • Database driver & version: MySQL 8.0.34
@jakelapan jakelapan added the New label Aug 11, 2023
@nfourtythree
Copy link
Collaborator

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 nfourtythree added ℹ️ status: need more info When waiting for user to supply database or more information. and removed New labels Mar 13, 2024
@nfourtythree
Copy link
Collaborator

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ℹ️ status: need more info When waiting for user to supply database or more information.
Projects
None yet
Development

No branches or pull requests

2 participants