Skip to main content

Accept stablecoin payments

Before you start: Create your API credentials and configure your webhook URL in the Cray Merchant Dashboard.
1. Create a payment POST
Header
Body
Response
2. Generate QR Code POST
Header
Response
QR will expire in 2 minutes

Test Payer Flow

Once you can create a payment and generate its QR code, test the complete customer experience by scanning the QR code with any crypto wallet and approving a testnet payment.

Order Status API

Retrieve the latest payment status for an order.

Endpoint

Example:
By default, this endpoint uses Server-Sent Events (SSE) and streams live status updates.

Server-Sent Events (Default)

Example response:
When the order status changes, another event is sent automatically. Example:

Standard HTTP Response

If you prefer polling instead of SSE, append ?sse=false.
Example response:

Possible Status Values


Complete Integration Flow

Important

The SSE connection is primarily for real-time status updates to the client, while the webhook should be treated as the authoritative server-to-server notification.