Check Payment Status
This is a public endpoint. It does not require the
X-Embed-Key header or authentication.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check whether a payment has been completed for a checkout session.
X-Embed-Key header or authentication.GET /api/embed/payment/status/{checkoutUrl}
| Parameter | Type | Description |
|---|---|---|
checkoutUrl | string | The checkout_url value from the checkout response |
curl -X GET "https://embed.rmz.gg/api/embed/payment/status/ck_abc123" \
-H "Accept: application/json"
const response = await fetch(
"https://embed.rmz.gg/api/embed/payment/status/ck_abc123"
);
const { data } = await response.json();
if (data.is_paid) {
console.log("Payment complete! Order ID:", data.order_id);
} else {
console.log("Payment pending...");
}
import requests
response = requests.get(
"https://embed.rmz.gg/api/embed/payment/status/ck_abc123"
)
data = response.json()["data"]
if data["is_paid"]:
print(f"Order created: {data['order_id']}")
$response = Http::get('https://embed.rmz.gg/api/embed/payment/status/ck_abc123');
$data = $response->json()['data'];
if ($data['is_paid']) {
echo "Order ID: " . $data['order_id'];
}
{
"success": true,
"data": {
"is_paid": true,
"order_id": 456
}
}
{
"success": true,
"data": {
"is_paid": false,
"order_id": null
}
}
| Field | Type | Description |
|---|---|---|
is_paid | boolean | true if payment was successful and an order was created |
order_id | integer | null | The order ID if payment is complete, otherwise null |
{
"success": false,
"message": "Checkout not found"
}
async function waitForPayment(checkoutUrl, maxAttempts = 60) {
for (let i = 0; i < maxAttempts; i++) {
const response = await fetch(
`https://embed.rmz.gg/api/embed/payment/status/${checkoutUrl}`
);
const { data } = await response.json();
if (data.is_paid) {
return data.order_id;
}
// Wait 3 seconds between polls
await new Promise(resolve => setTimeout(resolve, 3000));
}
throw new Error("Payment timeout");
}
