Retrieve the status and details of a payment by Stripe payment intent ID
pi_). This is returned when creating a payment intent or can be obtained from Stripe webhooks.| Status | Description |
|---|---|
pending | Payment intent created, waiting for payment completion |
completed | Payment successfully processed by Stripe |
failed | Payment failed (card declined, insufficient funds, etc.) |
refunded | Payment was refunded by an administrator |
| Status Code | Description |
|---|---|
| 200 | Payment status retrieved successfully |
| 401 | Not authenticated |
| 404 | Payment intent not found or doesn’t belong to user |
| 500 | Server error |
paymentIntentId and authenticated userIdtitle, description, type, and thumbnailUrl fieldssrc/controllers/paymentController.js:133-151