Documentation

    QBitFlow docs.

    Everything you need to integrate crypto payments — from your first checkout to going live.

    Session checkouts

    Session checkouts are the foundation of accepting payments in QBitFlow. Learn how to create and manage checkout sessions for your customers.

    What is a session checkout?

    Payment session

    A session checkout is a payment session initialized with a unique link that you share with your customer. When a customer wants to make a payment (one-time or subscription), you create a new session checkout and provide them with the link. The customer then visits this link to complete the payment in their preferred cryptocurrency.

    Creating session checkouts

    You can create session checkouts for different types of payments:

    1. One-time payment session

    Create One-Time Payment Session
    Create a session for a single payment

    2. Subscription session

    Create Subscription Session
    Create a session for recurring billing

    URL placeholders

    When creating session checkouts, you can use placeholders in your success and cancel URLs. These are automatically replaced by QBitFlow when redirecting the customer:

    {{UUID}}

    Replaced with the session UUID. Use this to identify the payment/subscription in your success handler.

    {{TRANSACTION_TYPE}}

    Replaced with the transaction type (e.g., "payment", "createSubscription").

    Example URL

    https://yoursite.com/success?uuid={{UUID}}&type={{TRANSACTION_TYPE}}

    Becomes: https://yoursite.com/success?uuid=01997c89-d0e9-7c9a-9886-fe7709919695&type=payment

    Customer UUID (optional)

    When creating a session checkout, you can optionally provide a customerUUID:

    ✅ With customer UUID

    If you provide a customer UUID (matching an existing customer in your QBitFlow account), the payment is automatically associated with that customer. The customer won't need to fill in their information again.

    📝 Without customer UUID

    If you don't provide a customer UUID, the customer is asked to fill in their information (name, email, etc.) during checkout. A new customer record is created automatically if they don't already exist.

    Session expiration

    Time limit

    Session checkout links expire after a certain period (typically 24 hours). After expiration, the link will no longer be valid, and you'll need to create a new session for the customer. The expiration timestamp is included in the session creation response.

    Retrieving session details

    Get Session Information
    Fetch details about a session checkout

    Best practice

    Always include both a webhook URL and a success URL when creating sessions. Webhooks provide reliable server-to-server notifications, while success URLs give your customers immediate feedback. Learn more in the section.
    Talk to us