Clear Failed UPI and Card Payments
EasyDescription
Failed UPI and card payments clutter the payments report. Delete the payments
whose status is failed and whose method is upi or card. Payments made any other way
stay, even when they failed.
Then show payment_id, method and status of every payment whose status is not
success.
End your query with ORDER BY payment_id.
Tables
| payments |
|---|
| payment_id (PK) |
| order_id (FK) |
| customer_id (FK) |
| amount |
| method |
| status |
| paid_at |