POCardTokenizationConfiguration

data class POCardTokenizationConfiguration(val title: String? = null, val isCardholderNameFieldVisible: Boolean = true, val billingAddress: POCardTokenizationConfiguration.BillingAddressConfiguration = BillingAddressConfiguration(), val primaryActionText: String? = null, val secondaryActionText: String? = null, val cancellation: POCancellationConfiguration = POCancellationConfiguration(), val metadata: Map<String, String>? = null, val style: POCardTokenizationConfiguration.Style? = null) : Parcelable

Defines card tokenization configuration.

Parameters

title

Custom title.

isCardholderNameFieldVisible

Specifies whether the cardholder name field should be displayed. Default value is true.

billingAddress

Allows to customize the collection of billing address.

primaryActionText

Custom primary action text (e.g. "Submit").

secondaryActionText

Custom secondary action text (e.g. "Cancel").

cancellation

Specifies cancellation behaviour.

metadata

Metadata related to the card.

style

Allows to customize the look and feel.

Constructors

Link copied to clipboard
constructor(title: String? = null, isCardholderNameFieldVisible: Boolean = true, billingAddress: POCardTokenizationConfiguration.BillingAddressConfiguration = BillingAddressConfiguration(), primaryActionText: String? = null, secondaryActionText: String? = null, cancellation: POCancellationConfiguration = POCancellationConfiguration(), metadata: Map<String, String>? = null, style: POCardTokenizationConfiguration.Style? = null)

Types

Link copied to clipboard
data class BillingAddressConfiguration(val mode: POCardTokenizationConfiguration.BillingAddressConfiguration.CollectionMode = CollectionMode.Automatic, val countryCodes: Set<String>? = null, val defaultAddress: POContact? = null, val attachDefaultsToPaymentMethod: Boolean = false) : Parcelable

Defines billing address configuration.

Link copied to clipboard
data class Style(val title: POTextStyle? = null, val sectionTitle: POTextStyle? = null, val field: POFieldStyle? = null, val dropdownMenu: PODropdownMenuStyle? = null, val errorMessage: POTextStyle? = null, val actionsContainer: POActionsContainerStyle? = null, @ColorRes val backgroundColorResId: Int? = null, @ColorRes val dividerColorResId: Int? = null, @ColorRes val dragHandleColorResId: Int? = null) : Parcelable

Allows to customize the look and feel.

Properties

Link copied to clipboard
Link copied to clipboard
val metadata: Map<String, String>? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val title: String? = null

Functions

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