PaymentSessionData

data class PaymentSessionData : Parcelable

A data class representing the state of the associated PaymentSession.

Functions

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

Properties

Link copied to clipboard
val cartTotal: Long = 0

The cart total value, excluding shipping and tax items.

Link copied to clipboard
val isPaymentReadyToCharge: Boolean

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
val paymentMethod: PaymentMethod? = null

The selected payment method for the associated PaymentSession.

Link copied to clipboard
val shippingInformation: ShippingInformation? = null

Where the items being purchased should be shipped.

Link copied to clipboard
val shippingMethod: ShippingMethod? = null

How the items being purchased should be shipped.

Link copied to clipboard
val shippingTotal: Long = 0

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.