PONativeAlternativePaymentMethodConfiguration

Defines native alternative payment method configuration.

Parameters

gatewayConfigurationId

Gateway configuration ID.

invoiceId

Invoice ID.

options

Allows to customize behaviour and pre-define the values.

style

Allows to customize the look and feel.

Constructors

constructor(gatewayConfigurationId: String, invoiceId: String, options: PONativeAlternativePaymentMethodConfiguration.Options = Options(), style: PONativeAlternativePaymentMethodConfiguration.Style? = null)

Types

Link copied to clipboard
data class ActionConfirmation(val enabled: Boolean = false, val title: String? = null, val message: String? = null, val confirmActionText: String? = null, val dismissActionText: String? = null) : Parcelable

Specifies action confirmation configuration (e.g. dialog).

Link copied to clipboard
data class Cancellation(val dragDown: Boolean = true, val touchOutside: Boolean = true, val backPressed: Boolean = true) : Parcelable

Specifies cancellation behaviour.

Link copied to clipboard
data class ConfirmAction(val text: String? = null) : Parcelable

Action for confirmation.

Link copied to clipboard
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 paymentConfirmationPrimaryAction: PONativeAlternativePaymentMethodConfiguration.ConfirmAction? = null, val paymentConfirmationSecondaryAction: PONativeAlternativePaymentMethodConfiguration.SecondaryAction? = null, val showPaymentConfirmationProgressIndicatorAfterSeconds: Int? = null) : Parcelable

Allows to customize behaviour and pre-define the values.

Link copied to clipboard

Supported secondary actions.

Link copied to clipboard
data class Style(val title: POTextStyle? = null, val input: POInputStyle? = null, val codeInput: POInputStyle? = null, val dropdownMenu: POInputFieldStyle? = null, val radioButton: PORadioButtonStyle? = null, val primaryButton: POButtonStyle? = null, val secondaryButton: POButtonStyle? = null, val background: POBackgroundStyle? = null, @ColorInt val backgroundColor: Int? = null, @ColorInt val progressIndicatorColor: Int? = null, @ColorInt val controlsTintColor: Int? = null, val message: POTextStyle? = null, val successMessage: POTextStyle? = null, @DrawableRes val successImageResId: Int? = null, val backgroundDecoration: POBackgroundDecorationStyle? = null, val dialog: PODialogStyle? = null) : Parcelable

Allows to customize the look and feel.

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)