Options

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, paymentConfirmationPrimaryAction: PONativeAlternativePaymentMethodConfiguration.ConfirmAction? = null, paymentConfirmationSecondaryAction: PONativeAlternativePaymentMethodConfiguration.SecondaryAction? = null, showPaymentConfirmationProgressIndicatorAfterSeconds: Int? = null)

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.

paymentConfirmationPrimaryAction

Optional primary action for payment confirmation. To hide action use null, this is a default behaviour.

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.