Options
data class Options(val title: String? = null, val primaryActionText: String? = null, val secondaryAction: PONativeAlternativePaymentConfiguration.SecondaryAction? = null, val cancellation: PONativeAlternativePaymentConfiguration.CancellationConfiguration = CancellationConfiguration(), val paymentConfirmation: PONativeAlternativePaymentConfiguration.PaymentConfirmationConfiguration = PaymentConfirmationConfiguration(), val barcode: POBarcodeConfiguration = POBarcodeConfiguration(), val inlineSingleSelectValuesLimit: Int = 5, val skipSuccessScreen: Boolean = false, val successMessage: String? = null) : Parcelable
Allows to customize behaviour and pre-define the values.
Parameters
title
Custom title.
primaryActionText
Custom primary action text (e.g. "Pay").
secondaryAction
Secondary action (e.g. "Cancel"). Use null to hide, this is a default behaviour.
cancellation
Specifies cancellation behaviour.
paymentConfirmation
Specifies payment confirmation behaviour.
barcode
Specifies barcode configuration.
inlineSingleSelectValuesLimit
Defines maximum number of options that will be displayed inline for parameters where user should select single option (e.g. radio buttons). Default value is 5.
skipSuccessScreen
Only applies when PaymentConfirmationConfiguration.waitsConfirmation is true.
successMessage
Custom success message when payment is completed.
Constructors
Link copied to clipboard
constructor(title: String? = null, primaryActionText: String? = null, secondaryAction: PONativeAlternativePaymentConfiguration.SecondaryAction? = null, cancellation: PONativeAlternativePaymentConfiguration.CancellationConfiguration = CancellationConfiguration(), paymentConfirmation: PONativeAlternativePaymentConfiguration.PaymentConfirmationConfiguration = PaymentConfirmationConfiguration(), barcode: POBarcodeConfiguration = POBarcodeConfiguration(), inlineSingleSelectValuesLimit: Int = 5, skipSuccessScreen: Boolean = false, successMessage: String? = null)