> For the complete documentation index, see [llms.txt](https://docs.paytweed.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.paytweed.com/developer-tools/tweed-sdks/core-react/usepayments.md).

# usePayments

Integrate Tweed Payments into your application and start selling NFTs and tokens effortlessly using a  usePayments hook.

### Checkout widget

Display Tweed's token and NFT widget anywhere in your application by simply calling the `checkoutIntent` function and providing the item's ID.

<details>

<summary>checkoutIntent()</summary>

```tsx
import { usePayments } from "@paytweed/core-react";

const { checkoutIntent } = usePayments();

await checkoutIntent({
  itemId: <ITEM_ID>,
});
```

**Method parameters**

itemId <mark style="color:red;">REQUIRED</mark>   string

toAddress *Optional*   string<br>

</details>
