POCardTokenizationConfiguration

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)

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.


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)

Deprecated

Use alternative constructor.

Defines card tokenization configuration.

Parameters

title

Custom title.

cvcRequired

Specifies whether the CVC field should be displayed. 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.