PONativeAlternativePaymentConfiguration
data class PONativeAlternativePaymentConfiguration(val invoiceId: String, val gatewayConfigurationId: String, val options: PONativeAlternativePaymentConfiguration.Options = Options(), val style: PONativeAlternativePaymentConfiguration.Style? = null) : Parcelable
Defines native alternative payment configuration.
Parameters
invoiceId
Invoice ID.
gatewayConfigurationId
Gateway configuration ID.
options
Allows to customize behaviour and pre-define the values.
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)
Types
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
Action for confirmation.
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(), 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 primaryAction: PONativeAlternativePaymentConfiguration.ConfirmAction? = null, val secondaryAction: PONativeAlternativePaymentConfiguration.SecondaryAction? = 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.