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 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.

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
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(), inlineSingleSelectValuesLimit: Int = 5, skipSuccessScreen: Boolean = false, successMessage: String? = null)

Properties

Functions

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