POCardTokenizationConfiguration
data class POCardTokenizationConfiguration(val title: String? = null, val cvcRequired: Boolean = true, val cardholderNameRequired: Boolean = true, val billingAddress: POCardTokenizationConfiguration.BillingAddressConfiguration = BillingAddressConfiguration(), val savingAllowed: Boolean = false, val submitButton: POCardTokenizationConfiguration.Button = Button(), val cancelButton: POCardTokenizationConfiguration.CancelButton? = CancelButton(), val bottomSheet: POBottomSheetConfiguration = POBottomSheetConfiguration(
height = WrapContent,
expandable = false
), val metadata: Map<String, String>? = null, val style: POCardTokenizationConfiguration.Style? = null) : Parcelable
Defines card tokenization configuration.
Parameters
title
Custom title.
cvcRequired
Specifies whether the CVC field should be displayed. Default value is true.
cardholderNameRequired
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.
submitButton
Submit button configuration.
cancelButton
Cancel button configuration. Use null to hide.
bottomSheet
Specifies bottom sheet configuration. By default is WrapContent and non-expandable.
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)
Defines card tokenization configuration.
constructor(title: String? = null, cvcRequired: Boolean = true, cardholderNameRequired: Boolean = true, billingAddress: POCardTokenizationConfiguration.BillingAddressConfiguration = BillingAddressConfiguration(), savingAllowed: Boolean = false, submitButton: POCardTokenizationConfiguration.Button = Button(), cancelButton: POCardTokenizationConfiguration.CancelButton? = CancelButton(), bottomSheet: POBottomSheetConfiguration = POBottomSheetConfiguration(
height = WrapContent,
expandable = false
), 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
Button configuration.
Link copied to clipboard
data class CancelButton(val text: String? = null, val icon: PODrawableImage? = null, val confirmation: POActionConfirmationConfiguration? = null) : Parcelable
Cancel button 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.