---
updatedAt: 2025-05-21T12:14:02.000Z
agentTools:
  projectIndex: https://docs.wert.io/llms.txt
---

# Adding item information

# The `extra` object

The  `extra` object is optional and can be used to show the details of your item.

<Image align="center" width="650px" src="https://files.readme.io/1b9bf40-image.png" />

<br />

The options you can pass to the object are:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        author\_image\_url
      </td>

      <td>
        String
      </td>

      <td>
        The URL of the author's avatar
      </td>
    </tr>

    <tr>
      <td>
        author
      </td>

      <td>
        String
      </td>

      <td>
        The name of the author
      </td>
    </tr>

    <tr>
      <td>
        image\_url
      </td>

      <td>
        String
      </td>

      <td>
        The URL of the item's image. Otherwise, the default image will be shown
      </td>
    </tr>

    <tr>
      <td>
        name
      </td>

      <td>
        String
      </td>

      <td>
        The name of the item
      </td>
    </tr>

    <tr>
      <td>
        header
      </td>

      <td>
        String
      </td>

      <td>
        Custom text at the top of the widget that is shown instead of Buy \{category}
      </td>
    </tr>

    <tr>
      <td>
        category
      </td>

      <td>
        String
      </td>

      <td>
        The category of the item.
        If `category` and `header` are not provided, the default value will be `Buy Token`
      </td>
    </tr>
  </tbody>
</Table>

<details>
  <summary>Here is how the widget looks with the default parameters:</summary>

  <Image align="center" src="https://files.readme.io/9e4a468-Untitled_7.png" width="650px" />
</details>

<br />

```javascript
const widget = new WertWidget({
  ...options,
  extra: {
    item_info: {
      author_image_url: "string", //Example: https://something.com/images/author_image.jpg
      author: "Item's Author",
      image_url: "string", //Example: https://something.com/images/image.jpg
      name: "Item's Name",
      category: "Item's Category",
      header: "Custom Header",
    },
  },
});
```

<br />

## Screens displaying item information

##### Please note: Images larger than 1MB will not be shown in the following order screens.

Order Details:

<Image align="center" width="650px" src="https://files.readme.io/4b3cb85-Untitled_11.png" />

<br />

Payment error screen:

<Image align="center" width="650px" src="https://files.readme.io/ede5b0a-Untitled_13.png" />

<br />

Order history:

<Image align="center" width="650px" src="https://files.readme.io/d8f1e67-Untitled_9.png" />