POCardTokenizationConfiguration

data class POCardTokenizationConfiguration(val title: String? = null, val cvcRequired: Boolean = true, val isCardholderNameFieldVisible: Boolean = true, val billingAddress: POCardTokenizationConfiguration.BillingAddressConfiguration = BillingAddressConfiguration(), val savingAllowed: Boolean = false, 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.

cvcRequired

Specifies whether the card CVC should be collected. Default value is true.

isCardholderNameFieldVisible

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

billingAddress

Allows to customize the collection of billing address.

savingAllowed

Displays checkbox that allows to save the card details for future payments.

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, cvcRequired: Boolean = true, isCardholderNameFieldVisible: Boolean = true, billingAddress: POCardTokenizationConfiguration.BillingAddressConfiguration = BillingAddressConfiguration(), savingAllowed: Boolean = false, 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 checkbox: POCheckboxStyle? = 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 cvcRequired: Boolean = true
Link copied to clipboard
val metadata: Map<String, String>? = null
Link copied to clipboard
Link copied to clipboard
val savingAllowed: Boolean = false
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)