Check payment status
POST
http://localhost:8000/api/payment/check-status/order-idcurl --request POST \
--url http://localhost:8000/api/payment/check-status/order-idRoute memasang throttle 10,1.
Alur request:
POST Toko Digital /api/payment/check-status/<order-id>
→ POST target service /api/payment/check-status/<order-id>
← response JSON dan status HTTP targetTarget dipilih dari:
| Environment | Variable |
|---|---|
| Production | BACKEND_API_URL_PROD |
| Development | BACKEND_API_URL_DEV |
| Default/local | BACKEND_API_URL_LOCAL |
Response
Jika upstream mengembalikan response, status dan JSON diteruskan. Jika request melebihi timeout atau mengalami exception, endpoint mengembalikan:
{
"error": "Failed to check payment status"
}dengan HTTP 500.