GooglePayDisplayItem

data class GooglePayDisplayItem(val label: String, val type: GooglePayDisplayItemType, val price: String, val status: GooglePayDisplayItemStatus = GooglePayDisplayItemStatus.FINAL) : Parcelable

A cart item shown in the payment sheet (e.g. subtotals, sales taxes, shipping charges, discounts etc.). This is typically populated in the payment sheet if you use Authorize Payments or Dynamic Price Updates. See: https://developers.google.com/pay/api/web/reference/request-objects#DisplayItem

Constructors

Link copied to clipboard
constructor(label: String, type: GooglePayDisplayItemType, price: String, status: GooglePayDisplayItemStatus = GooglePayDisplayItemStatus.FINAL)

Properties

Link copied to clipboard

The label to be displayed for the given option.

Link copied to clipboard

The monetary value of the cart item with an optional decimal precision of two decimal places. Negative values are allowed.

Link copied to clipboard

The status of the cart item. Defines price variance

Link copied to clipboard

The type of the given option.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)