# Payment receipt

URL: https://samva.dev/templates/software-invoice

A receipt for a software subscription with the period it covers, itemized lines, credits, the tax, the card used and one invoice download.

## Guidance

- Pass the lines as a list of description and amount. Each line can add a detail, a quantity and a unit price, and a line can be marked as a credit so it reads apart from the charges. The default fixture shows lines with quantities and prices; long-content adds credit lines.
- Every figure is computed by your billing system: the subtotal, the tax label and rate, the tax and the total. Pass dates as year-month-day and the template formats them and the money for the send's locale. It adds nothing up and never reads the clock. Send only the card brand and last four digits.
- It is written for Ledgerwick, a fictional analytics software company. There are no pictures to replace. The look lives in the theme tokens in starter.css and the design's stylesheet.

## Variables

| Variable | Meaning |
| --- | --- |
| billingAddress | Value for billing address. |
| billingUrl | Link for billing. |
| companyName | Value for company name. |
| contactName | Value for contact name. |
| currency | Value for currency. |
| helpUrl | Link for help. |
| homeUrl | Link for home. |
| invoiceNumber | Value for invoice number. |
| invoiceUrl | Link for invoice. |
| lines | Value for lines. |
| paidAt | Value for paid at. |
| paymentBrand | Value for payment brand. |
| paymentLast4 | Value for payment last 4. |
| periodEnd | Value for period end. |
| periodLabel | Value for period label. |
| periodStart | Value for period start. |
| subtotal | Value for subtotal. |
| tax | Value for tax. |
| taxLabel | Value for tax label. |
| taxRate | Value for tax rate. |
| total | Value for total. |
