Options

data class Options(val title: String? = null, val primaryActionText: String? = null, val secondaryAction: PONativeAlternativePaymentMethodConfiguration.SecondaryAction? = null, val inlineSingleSelectValuesLimit: Int = 5, val cancellation: PONativeAlternativePaymentMethodConfiguration.Cancellation = Cancellation(), val successMessage: String? = null, val skipSuccessScreen: Boolean = false, val waitsPaymentConfirmation: Boolean = true, val paymentConfirmationTimeoutSeconds: Int = DEFAULT_PAYMENT_CONFIRMATION_TIMEOUT_SECONDS, val paymentConfirmationSecondaryAction: PONativeAlternativePaymentMethodConfiguration.SecondaryAction? = null, val showPaymentConfirmationProgressIndicatorAfterSeconds: Int? = 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. To hide secondary action use null, this is a default behaviour.

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.

cancellation

Specifies cancellation behaviour.

successMessage

Custom success message when payment is completed.

skipSuccessScreen

Only applies when waitsPaymentConfirmation is true.

waitsPaymentConfirmation

Specifies whether flow should wait for payment confirmation from PSP or will complete right after all user’s input is submitted. Default value is true.

paymentConfirmationTimeoutSeconds

Amount of time (in seconds) to wait for final payment confirmation. Default value is 3 minutes, while maximum value is 15 minutes.

paymentConfirmationSecondaryAction

Action that could be optionally presented to user during payment confirmation stage. To hide action use null, this is a default behaviour.

showPaymentConfirmationProgressIndicatorAfterSeconds

Show progress indicator during payment confirmation after provided delay (in seconds). To hide progress indicator use null, this is a default behaviour.

Constructors

Link copied to clipboard
constructor(title: String? = null, primaryActionText: String? = null, secondaryAction: PONativeAlternativePaymentMethodConfiguration.SecondaryAction? = null, inlineSingleSelectValuesLimit: Int = 5, cancellation: PONativeAlternativePaymentMethodConfiguration.Cancellation = Cancellation(), successMessage: String? = null, skipSuccessScreen: Boolean = false, waitsPaymentConfirmation: Boolean = true, paymentConfirmationTimeoutSeconds: Int = DEFAULT_PAYMENT_CONFIRMATION_TIMEOUT_SECONDS, paymentConfirmationSecondaryAction: PONativeAlternativePaymentMethodConfiguration.SecondaryAction? = null, showPaymentConfirmationProgressIndicatorAfterSeconds: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)