Public

Get Payment Status

Poll the current status for a Stripe PaymentIntent/SetupIntent or Dodo payment link. Falls back to pending (202) when the record is not yet present.

GET
/public/payment-status/{intentId}

Path Parameters

intentId*string

Payment intent ID

Response Body

application/json

application/json

application/json

curl -X GET "https://api.getlumen.dev/v1/public/payment-status/pi_3Q9q6bLsre2zKYZm1"

{
  "status": "succeeded",
  "subscriptionId": "sub_int_bXpaJQwRq9e17g8c2kFYLr"
}

{
  "status": "pending",
  "message": "Payment not found or still processing"
}
{
  "error": "Failed to retrieve payment status",
  "message": "Redis connection failed"
}