PaymentSessionData

A data class representing the state of the associated PaymentSession.

Properties

Link copied to clipboard
val cartTotal: Long = 0

The cart total value, excluding shipping and tax items.

Link copied to clipboard

Whether the payment data is ready for making a charge. This can be used to set a buy button to enabled for prompt a user to fill in more information.

Link copied to clipboard

The selected payment method for the associated PaymentSession.

Link copied to clipboard

Where the items being purchased should be shipped.

Link copied to clipboard

How the items being purchased should be shipped.

Link copied to clipboard

The current value of the shipping items in the associated PaymentSession

Link copied to clipboard
val useGooglePay: Boolean = false

When true, the customer has indicated their intent to pay with Google Pay. Use the Google Pay API to complete payment with Google Pay.

Functions

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