Skip to main content

Checkout Flow

This page documents how the hosted checkout page at pay.chainpal.org works. Understanding this flow helps you implement proper callback handling and user experience.
Internal API - Not Publicly AvailableThe endpoints described on this page are internal APIs that power ChainPal’s hosted checkout page. They are not part of the Developer API and are not available for direct integration.To accept payments, use the Payments API to create a payment session and redirect customers to the returned paymentURL.

How Hosted Checkout Works

When you create a payment using the Payments API, you receive a paymentURL like:
When customers visit this URL, the hosted checkout page:
  1. Fetches payment details and available token/network options
  2. Displays your business branding and the payment amount
  3. Allows the customer to select their preferred cryptocurrency and network
  4. Generates a unique deposit address for the transaction
  5. Shows the QR code and address for payment
  6. Polls for payment confirmation
  7. Redirects to your callbackURL on success or failureURL on failure

Internal Endpoints (Reference Only)

Retrieves the payment configuration for a checkout session. This includes supported tokens/networks, amount limits, and business branding.

Path Parameters

Example Request

Response

Response Fields


Complete Checkout

Locks the payment to a specific token/network and generates a deposit address. After calling this endpoint, the customer has a limited time to complete the payment.

Path Parameters

Request Body

Example Request

Response

Response Fields

The customer must send the exact totalPayableAmount to the receiveAddress before validUntil. Underpayments or late payments may not be processed automatically.

Poll Checkout Status

Retrieves the current status of a checkout session. Use this for polling to detect when payment is received.

Path Parameters

Example Request

Response

Possible Status Values


Checkout Flow