Don't attempt to refund an order with an invalid amount #2287
Labels
good first issue
The issue is a good candidate for the first community contribution/for a newcomer to the team.
priority: low
The issue/PR is low priority—not many people are affected or there’s a workaround, etc.
size: small
The issue is sized small.
type: bug
The issue is a confirmed bug.
When the order amount is invalid (e.g. when you try to refund an amount that's
0
) we still try to process a refund through Stripe. We should catch the issue on the API level and inform the merchant that the refund amount is invalid — without sending the refund request to the Stripe API.Reproduction steps
4242 4242 4242 4242
0
, negative amounts, and amounts greater than the order's cost.The text was updated successfully, but these errors were encountered: