Terminal API
Create, monitor, and cancel Square Terminal checkouts from the browser via AJAX.
Sandbox mode — device ID required.
In the sandbox you need a pairable device code. Go to the
Square Developer Dashboard
→ your app → Terminal API → Sandbox → create a
device code. Copy the Device ID (not the pairing code) into the field below.
{{-- ── Left: create a checkout ──────────────────────────────────────── --}}
{{-- ── Right: active checkout status ───────────────────────────────── --}}
{{-- Completion result --}}
Create checkout
$
USD
Active checkout
{{-- No checkout yet --}}
No active checkout. Create one on the left.
{{-- Checkout details (hidden initially) --}}
| Checkout ID | |
|---|---|
| Status | |
| Amount | |
| Created | |
| Updated |
Auto-polling…
Payment completed on terminal.
Checkout ended without payment.