Read the ticket
What’s broken, who it affects, how the team will know it’s fixed. Run its checks and watch the first one fail.
Large refunds fail
Refunding 1,200.10 fails: “amount must be whole cents”.
Done when
Run checks- Refunds over 1,000 go through: fails
- Small refunds still work: passes
Refund.php
- if ($amount > $paid) abort(422);
- $refund->amount = $amount * 100;
- $refund->save();
Refunds over 1,000 go through: failed
Got 120009.99999999999. Amount must be whole cents.