POCardTokenizationConfiguration

constructor(title: String? = null, cardNumber: POCardTokenizationConfiguration.TextField = TextField(), expirationDate: POCardTokenizationConfiguration.TextField = TextField(), cvc: POCardTokenizationConfiguration.TextField? = TextField(), cardholderName: POCardTokenizationConfiguration.TextField? = TextField(), cardScanner: POCardTokenizationConfiguration.CardScannerConfiguration? = null, preferredScheme: POCardTokenizationConfiguration.PreferredSchemeConfiguration? = PreferredSchemeConfiguration(), billingAddress: POCardTokenizationConfiguration.BillingAddressConfiguration = BillingAddressConfiguration(), saving: POCardTokenizationConfiguration.SavingConfiguration? = null, submitButton: POCardTokenizationConfiguration.Button = Button(), cancelButton: POCardTokenizationConfiguration.CancelButton? = CancelButton(), bottomSheet: POBottomSheetConfiguration = POBottomSheetConfiguration( height = WrapContent, expandable = false ), metadata: Map<String, String>? = null, style: POCardTokenizationConfiguration.Style? = null, _submitButton: POCardTokenizationConfiguration.Button? = submitButton)

Parameters

title

Custom title.

cardNumber

Card number field configuration.

expirationDate

Expiration date field configuration.

cvc

CVC field configuration. Set null to hide.

cardholderName

Cardholder name field configuration. Set null to hide.

cardScanner

Card scanner configuration. Set null to hide, this is a default behaviour.

preferredScheme

Preferred scheme selection configuration. Shows scheme selection if co-scheme is available. Set null to hide.

billingAddress

Allows to customize the collection of billing address.

saving

Card saving configuration. Displays checkbox that allows to save the card details for future payments. Set null to hide, this is a default behaviour.

submitButton

Submit button configuration.

cancelButton

Cancel button configuration. Set null to hide.

bottomSheet

Bottom sheet configuration.

metadata

Metadata related to the card.

style

Custom style.


constructor(title: String? = null, cvcRequired: Boolean = true, cardholderNameRequired: Boolean = true, cardScanner: POCardTokenizationConfiguration.CardScannerConfiguration? = null, preferredScheme: POCardTokenizationConfiguration.PreferredSchemeConfiguration? = PreferredSchemeConfiguration(), 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)

Deprecated

Use alternative constructor.

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.

cardScanner

Card scanner configuration. Set null to hide, this is a default behaviour.

preferredScheme

Preferred scheme selection configuration. Shows scheme selection if co-scheme is available. Set null to hide.

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. Set null to hide.

bottomSheet

Specifies bottom sheet configuration. By default is WrapContent and non-expandable.

metadata

Metadata related to the card.

style

Custom style.


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.

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.