PONativeAlternativePaymentConfiguration

data class PONativeAlternativePaymentConfiguration(val invoiceId: String, val gatewayConfigurationId: String, val title: String? = null, val submitButton: PONativeAlternativePaymentConfiguration.Button = Button(), val cancelButton: PONativeAlternativePaymentConfiguration.CancelButton? = null, val cancellation: POCancellationConfiguration = POCancellationConfiguration(), val paymentConfirmation: PONativeAlternativePaymentConfiguration.PaymentConfirmationConfiguration = PaymentConfirmationConfiguration(confirmButton = null), val barcode: POBarcodeConfiguration = POBarcodeConfiguration(saveButton = POBarcodeConfiguration.Button()), val inlineSingleSelectValuesLimit: Int = 5, val skipSuccessScreen: Boolean = false, val successMessage: String? = null, val style: PONativeAlternativePaymentConfiguration.Style? = null) : Parcelable

Defines native alternative payment configuration.

Parameters

invoiceId

Invoice ID.

gatewayConfigurationId

Gateway configuration ID.

title

Custom title.

submitButton

Submit button configuration.

cancelButton

Cancel button configuration. Use null to hide, this is a default behaviour.

cancellation

Specifies cancellation behaviour.

paymentConfirmation

Specifies payment confirmation behaviour.

barcode

Specifies barcode configuration.

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.

style

Allows to customize the look and feel.

Constructors

Link copied to clipboard
constructor(invoiceId: String, gatewayConfigurationId: String, options: PONativeAlternativePaymentConfiguration.Options = Options(), style: PONativeAlternativePaymentConfiguration.Style? = null)

Defines native alternative payment configuration.

constructor(invoiceId: String, gatewayConfigurationId: String, title: String? = null, submitButton: PONativeAlternativePaymentConfiguration.Button = Button(), cancelButton: PONativeAlternativePaymentConfiguration.CancelButton? = null, cancellation: POCancellationConfiguration = POCancellationConfiguration(), paymentConfirmation: PONativeAlternativePaymentConfiguration.PaymentConfirmationConfiguration = PaymentConfirmationConfiguration(confirmButton = null), barcode: POBarcodeConfiguration = POBarcodeConfiguration(saveButton = POBarcodeConfiguration.Button()), inlineSingleSelectValuesLimit: Int = 5, skipSuccessScreen: Boolean = false, successMessage: String? = null, style: PONativeAlternativePaymentConfiguration.Style? = null)

Types

Link copied to clipboard
data class Button(val text: String? = null, val icon: PODrawableImage? = null) : Parcelable

Button configuration.

Link copied to clipboard
data class CancelButton(val text: String? = null, val icon: PODrawableImage? = null, val disabledForSeconds: Int = 0, val confirmation: POActionConfirmationConfiguration? = null) : Parcelable

Cancel button configuration.

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

Specifies cancellation behaviour.

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

Confirmation action.

Link copied to clipboard
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(confirmButton = null), val barcode: POBarcodeConfiguration = POBarcodeConfiguration(saveButton = POBarcodeConfiguration.Button()), val inlineSingleSelectValuesLimit: Int = 5, val skipSuccessScreen: Boolean = false, val successMessage: String? = null) : Parcelable

Allows to customize behaviour and pre-define the values.

Link copied to clipboard
data class PaymentConfirmationConfiguration(val waitsConfirmation: Boolean = true, val timeoutSeconds: Int = DEFAULT_TIMEOUT_SECONDS, val showProgressIndicatorAfterSeconds: Int? = null, val hideGatewayDetails: Boolean = false, val confirmButton: PONativeAlternativePaymentConfiguration.Button? = null, val cancelButton: PONativeAlternativePaymentConfiguration.CancelButton? = null) : Parcelable

Specifies payment confirmation behaviour.

Link copied to clipboard

Supported secondary actions.

Link copied to clipboard
data class Style(val title: POTextStyle? = null, val label: POTextStyle? = null, val field: POFieldStyle? = null, val codeField: POFieldStyle? = null, val radioButton: PORadioButtonStyle? = null, val dropdownMenu: PODropdownMenuStyle? = null, val actionsContainer: POActionsContainerStyle? = null, val dialog: PODialogStyle? = null, val background: POBackgroundStyle? = null, val message: POTextStyle? = null, val errorMessage: POTextStyle? = null, val successMessage: POTextStyle? = null, @DrawableRes val successImageResId: Int? = null, @ColorRes val progressIndicatorColorResId: Int? = null, @ColorRes val controlsTintColorResId: Int? = null, @ColorRes val dividerColorResId: Int? = null, @ColorRes val dragHandleColorResId: Int? = null) : Parcelable

Allows to customize the look and feel.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val successMessage: String? = null
Link copied to clipboard
val title: String? = null

Functions

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