Admin endpoint to retrieve all payments with pagination and filtering
pending - Payment intent created but not completedcompleted - Successfully processed paymentfailed - Payment failedrefunded - Payment refunded by adminpurchasedAt in descending order (newest first).
| Query | Description |
|---|---|
?status=completed | Only successful payments |
?status=pending | Payments awaiting completion |
?status=failed | Failed payment attempts |
?status=refunded | Refunded transactions |
| No status parameter | All payments regardless of status |
status and purchasedAt fields for faster filtering and sortingauthenticate and requireAdmin middlewarename and email fields onlytitle and type fields onlypurchasedAt descending (newest first)src/controllers/paymentController.js:154-179