# usePayments

### 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>
