Contents

total

A line item that represents the total for the payment.

Declaration

required ApplePayLineItem total;

Mentioned in

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"
}

See Also

Setting the total and summary line items