Don't allow refund to be higher than the order total

Created on 17 October 2023, about 1 year ago

It should not be possible to submit a refund that is larger than the order total, or maybe even the payment total, it should thrown an error on the amount field.

Feature request
Status

Active

Version

2.0

Component

Payment

Created by

🇺🇸United States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @DamienMcKenna
  • Status changed to Closed: won't fix about 1 year ago
  • 🇺🇸United States DamienMcKenna NH, USA

    FYI it turned out that we had some custom code that was responsible for this, so the fix was in custom code rather than the main Commerce module.

  • We have a scenario involving upgrade and downgrade options. When a user upgrades to a higher plan, downgrades to a lower plan, and then cancels the purchase, it may result in a situation where we need to refund an amount greater than the current order value.

    The patch below helps prevent this issue and ensures proper handling of such cases.

Production build 0.71.5 2024