---
updatedAt: 2025-06-17T21:05:20.000Z
agentTools:
  projectIndex: https://docs.hips.com/llms.txt
---

# Hips.js Checkout Settings

## Configuration

The following parameters in **Hips.js** can be configured

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Name
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        token
      </td>

      <td style={{ textAlign: "left" }}>
        String
      </td>

      <td style={{ textAlign: "left" }}>
        HIPS unique ID for this order, also known as Order Token retrieved from HIPS API [Create Order](https://docs.hips.com/reference/postorders)
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        style
      </td>

      <td style={{ textAlign: "left" }}>
        Object
      </td>

      <td style={{ textAlign: "left" }}>
        JSON object providing optional styling preferences
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        style ➔ mainColor
      </td>

      <td style={{ textAlign: "left" }}>
        String
      </td>

      <td style={{ textAlign: "left" }}>
        A CSS color
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        style ➔ secondColor
      </td>

      <td style={{ textAlign: "left" }}>
        String
      </td>

      <td style={{ textAlign: "left" }}>
        A CSS color
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        style ➔ font
      </td>

      <td style={{ textAlign: "left" }}>
        String
      </td>

      <td style={{ textAlign: "left" }}>
        Overriding the default font
      </td>
    </tr>
  </tbody>
</Table>

## Example

```javascript
<script src="https://cdn.hips.com/js/v1/hips.js"></script>
  <script>
       Hips.checkout({
        token: 'UVWofp7AjHiRKNLjhUjMnhc3',
        style: {
          'mainColor': 'BA68D1',
          'secondColor': 'C29ACE',
          'font': 'Comic Sans MS'
        }
       });
  </script>
```