PONativeAlternativePaymentConfiguration

data class PONativeAlternativePaymentConfiguration(val flow: PONativeAlternativePaymentConfiguration.Flow, val title: String? = null, val submitButton: PONativeAlternativePaymentConfiguration.Button = Button(), val cancelButton: PONativeAlternativePaymentConfiguration.CancelButton? = null, val inlineSingleSelectValuesLimit: Int = 5, val barcode: POBarcodeConfiguration = POBarcodeConfiguration(saveButton = POBarcodeConfiguration.Button()), val returnUrl: String? = null, val paymentConfirmation: PONativeAlternativePaymentConfiguration.PaymentConfirmationConfiguration = PaymentConfirmationConfiguration(), val success: PONativeAlternativePaymentConfiguration.SuccessConfiguration? = SuccessConfiguration(), val bottomSheet: POBottomSheetConfiguration = POBottomSheetConfiguration( height = WrapContent, expandable = true ), val style: PONativeAlternativePaymentConfiguration.Style? = null) : Parcelable

Native alternative payment configuration.

Parameters

flow

Payment flow configuration.

title

Custom title.

submitButton

Submit button configuration.

cancelButton

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

inlineSingleSelectValuesLimit

Defines the maximum number of options that will be displayed inline for parameters where user should select a single option (e.g. radio buttons). Default value is 5.

barcode

Barcode configuration.

returnUrl

Deep link return URL. Required for the flows that include web redirect.

paymentConfirmation

Payment confirmation configuration.

success

Success screen configuration. Pass null to skip the success screen.

bottomSheet

Bottom sheet configuration.

style

Custom style.

Constructors

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

Native alternative payment configuration.

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

Native alternative payment configuration.

constructor(flow: PONativeAlternativePaymentConfiguration.Flow, title: String? = null, submitButton: PONativeAlternativePaymentConfiguration.Button = Button(), cancelButton: PONativeAlternativePaymentConfiguration.CancelButton? = null, inlineSingleSelectValuesLimit: Int = 5, barcode: POBarcodeConfiguration = POBarcodeConfiguration(saveButton = POBarcodeConfiguration.Button()), returnUrl: String? = null, paymentConfirmation: PONativeAlternativePaymentConfiguration.PaymentConfirmationConfiguration = PaymentConfirmationConfiguration(), success: PONativeAlternativePaymentConfiguration.SuccessConfiguration? = SuccessConfiguration(), bottomSheet: POBottomSheetConfiguration = POBottomSheetConfiguration( height = WrapContent, expandable = true ), 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

Bottom sheet cancellation behaviour.

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

Confirmation action.

Link copied to clipboard
sealed class Flow : Parcelable

Native alternative payment flow configuration.

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

Custom options.

Link copied to clipboard
data class PaymentConfirmationConfiguration(@IntRange(from = 0, to = 900) val timeoutSeconds: Int = DEFAULT_TIMEOUT_SECONDS, val confirmButton: PONativeAlternativePaymentConfiguration.Button? = null, val cancelButton: PONativeAlternativePaymentConfiguration.CancelButton? = null) : Parcelable

Payment confirmation configuration.

Link copied to clipboard

Supported secondary actions.

Link copied to clipboard
data class Style(val title: POTextStyle? = null, val bodyText: POTextStyle? = null, val labeledContent: POLabeledContentStyle? = null, val groupedContent: POGroupedContentStyle? = null, val field: POFieldStyle? = null, val codeField: POFieldStyle? = null, val radioField: PORadioFieldStyle? = null, val dropdownMenu: PODropdownMenuStyle? = null, val checkbox: POCheckboxStyle? = null, val dialog: PODialogStyle? = null, val stepper: POStepperStyle? = null, val success: PONativeAlternativePaymentConfiguration.Style.SuccessStyle? = null, val errorMessageBox: POMessageBoxStyle? = null, val actionsContainer: POActionsContainerStyle? = null, @ColorRes val backgroundColorResId: Int? = null, @ColorRes val progressIndicatorColorResId: Int? = null, @ColorRes val controlsTintColorResId: Int? = null, @ColorRes val dividerColorResId: Int? = null, @ColorRes val dragHandleColorResId: Int? = null) : Parcelable

Custom style.

Link copied to clipboard
data class SuccessConfiguration(val title: String? = null, val message: String? = null, val displayDurationSeconds: Int = 3, val extendedDisplayDurationSeconds: Int = 60, val doneButton: PONativeAlternativePaymentConfiguration.Button? = Button()) : Parcelable

Success screen configuration.

Properties

Functions

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