GooglePayLineItem

data class GooglePayLineItem(val label: String, val price: Int, val type: GooglePayLineItemType, val status: GooglePayLineItemStatus = GooglePayLineItemStatus.Final) : Parcelable

Represents a line item to be displayed in the Google Pay sheet.

Constructors

Link copied to clipboard
constructor(label: String, price: Int, type: GooglePayLineItemType, status: GooglePayLineItemStatus = GooglePayLineItemStatus.Final)

Properties

Link copied to clipboard

The label for the line item that will appear on the Google Payment sheet

Link copied to clipboard
val price: Int

The price for the line item that will appear on the Google Pay sheet. It should be an integer representing the price in the smallest currency unit (e.g. 100 cents to represent $1.00)

Link copied to clipboard

The status of the line item. Default is GooglePayLineItemStatus.Final See GooglePayLineItemStatus for documentation

Link copied to clipboard

The type of line line. See GooglePayLineItemType for documentation