🚀 Devdraft Launch Week I is live! Sign up for exclusive access and early features. Learn more →
curl --request GET \
--url https://api.devdraft.ai/api/v0/test-payment/{id} \
--header 'x-client-secret: <api-key>'
{
"id": "pay_12345abcdef",
"amount": 100.5,
"currency": "USD",
"status": "succeeded",
"timestamp": "2023-07-01T12:00:00.000Z"
}
curl --request GET \
--url https://api.devdraft.ai/api/v0/test-payment/{id} \
--header 'x-client-secret: <api-key>'
{
"id": "pay_12345abcdef",
"amount": 100.5,
"currency": "USD",
"status": "succeeded",
"timestamp": "2023-07-01T12:00:00.000Z"
}
Your secret API key. Keep this secure and never expose it in client-side code.
Payment ID
Payment details retrieved successfully
The response is of type object
.