PaymentSheetSession

data class PaymentSheetSession(val id: String, val merchant: PaymentSheetSession.Merchant, val amount: PaymentSheetSession.Money, val paymentMethods: List<PaymentSheetSession.PaymentMethod>, val expiresAt: Instant, val lineItems: List<PaymentSheetSession.LineItem> = emptyList(), val documents: PaymentSheetSession.Documents = Documents())

Constructors

Link copied to clipboard
constructor(id: String, merchant: PaymentSheetSession.Merchant, amount: PaymentSheetSession.Money, paymentMethods: List<PaymentSheetSession.PaymentMethod>, expiresAt: Instant, lineItems: List<PaymentSheetSession.LineItem> = emptyList(), documents: PaymentSheetSession.Documents = Documents())

Types

Link copied to clipboard
data class Documents(val invoiceUrl: String? = null, val receiptUrl: String? = null)

Documents that Checkout made available after payment completed.

Link copied to clipboard
data class LineItem(val id: String, val name: String, val quantity: Int? = null, val total: PaymentSheetSession.Money)

A purchasable item displayed in the optional Order summary.

Link copied to clipboard
data class Merchant(val displayName: String, val supportText: String? = null)
Link copied to clipboard
data class Money(val value: Long, val currency: String)
Link copied to clipboard
data class PaymentMethod(val id: String, val kind: PaymentSheetSession.PaymentMethod.Kind, val source: PaymentSheetSession.PaymentMethod.Source = Source.SAVED, val label: String, val detail: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard