# <Invoice />

A component for viewing and paying invoices.

 [image: Invoice component showing a Paid invoice with a Download button, issue and paid dates, a line item, subtotal, taxes, total and tier pricing notes]

The invoice component showing a paid invoice.

 [image: Not due invoice with a Download button, two line items and totals, and beside it a selected saved card, a New card tile and an orange Pay $247.40 button]

An unpaid invoice. The customer can add or remove payment methods to pay it.

```tsx
<Invoice
  id={invoiceId}
  onPaymentSuccess={() => console.log("Paid")}
/>
```

It needs a [portal session token](https://docs.bunny.com/developer/bunny-components/installation#tokens). Like every component, it also accepts `appearance` ([Styling](https://docs.bunny.com/developer/bunny-components/styling)) and `style` and `className` for positioning.

### Props

- `id`: The invoice to show.
- `onPaymentSuccess`: Called when the customer has paid the invoice.

### hidePaymentForm and hideDownloadButton

Hide the payment form, or the button that downloads the invoice.

---

Source: https://docs.bunny.com/developer/bunny-components/invoice. Index of every page: https://docs.bunny.com/llms.txt
