---
title: total
framework: applepayontheweb
role: symbol
role_heading: Instance Property
path: applepayontheweb/applepaypaymentrequest/total
---

# total

A line item that represents the total for the payment.

## Declaration

```data
required ApplePayLineItem total;
```

## Mentioned in

Apple Pay on the Web Version 4 Release Notes

## Discussion

Discussion See ApplePayLineItem. The amount of the total must be greater than or equal to zero and the label must be non-empty to pass validation. Provide a business name in the label field. Use the same business name people see when they look for the charge on their bank or credit card statement, for example, “COMPANY, INC.". "total": {     "label": "COMPANY, INC.",     "type": "final",     "amount": "38.06" } note: In versions of Apple Pay JS prior to version 4, the amount of the total must be greater than zero. Check for version availability using supportsVersion before setting a zero amount.

## See Also

### Setting the total and summary line items

- [lineItems](applepayontheweb/applepaypaymentrequest/lineitems.md)
- [ApplePayLineItem](applepayontheweb/applepaylineitem.md)
- [ApplePayLineItemType](applepayontheweb/applepaylineitemtype.md)
