PaymentConfirmationConfiguration

data class PaymentConfirmationConfiguration(val waitsConfirmation: Boolean = true, val timeoutSeconds: Int = DEFAULT_TIMEOUT_SECONDS, val showProgressIndicatorAfterSeconds: Int? = null, val hideGatewayDetails: Boolean = false, val primaryAction: PONativeAlternativePaymentConfiguration.ConfirmAction? = null, val secondaryAction: PONativeAlternativePaymentConfiguration.SecondaryAction? = null) : Parcelable

Specifies payment confirmation behaviour.

Parameters

waitsConfirmation

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

timeoutSeconds

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

showProgressIndicatorAfterSeconds

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

hideGatewayDetails

Specifies whether gateway information (such as name/logo) should be hidden during payment confirmation even when specific payment provider details are not available. Default value is false.

primaryAction

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

secondaryAction

Secondary action (e.g. "Cancel") that could be optionally presented to user during payment confirmation stage. Use null to hide, this is a default behaviour.

Constructors

Link copied to clipboard
constructor(waitsConfirmation: Boolean = true, timeoutSeconds: Int = DEFAULT_TIMEOUT_SECONDS, showProgressIndicatorAfterSeconds: Int? = null, hideGatewayDetails: Boolean = false, primaryAction: PONativeAlternativePaymentConfiguration.ConfirmAction? = null, secondaryAction: PONativeAlternativePaymentConfiguration.SecondaryAction? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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