Wait for checkout
jami_wait_for_checkoutPoll a checkout session until it is paid or ends, up to timeout_seconds, reporting progress; if still open, call again to keep waiting.
Instructions
Poll a checkout session until it's paid or ends, up to timeout_seconds. Reports progress while it waits.
If the buyer hasn't finished when the timeout hits, this returns status 'open' (not an error) — call it again to keep waiting. Sessions expire 30 minutes after creation.
Args:
session_id: from jami_create_checkout.
timeout_seconds: 5–300 (default 90).
interval_seconds: 2–30 between polls (default 3).
Returns the same shape as jami_get_checkout_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Checkout session id returned by jami_create_checkout, e.g. "6710c2e8b1a2f0012ab34cd9" | |
| response_format | No | 'markdown' (default) for a readable summary, 'json' for the full structured payload | markdown |
| timeout_seconds | No | ||
| interval_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Human-readable amount, e.g. "150.00 ETB" | |
| status | Yes | ||
| failure | Yes | Why the session ended without an order; null unless status is "expired" | |
| order_id | Yes | ||
| expires_at | Yes | ||
| session_id | Yes | ||
| amount_minor | Yes | Integer santim (100 = 1.00 ETB) | |
| order_status | Yes |