Only completed payments can be refunded
Admin refund API rejected the payment because it is not in a completed state (400).
Why this happens
Refund attempted on pending, failed, canceled, or already-refunded rows. The site only refunds completed charges.
Diagnose and fix
1. Open Payment transactions list; confirm status is completed before refund.
2. Wait for webhook/confirm if the charge is still pending at the provider.
3. If already refunded, use history — do not retry the same refund.
4. See Refund reversal for related admin flows.