InstallmentParams

data class InstallmentParams(val defaultOptions: InstallmentOptionParams.DefaultInstallmentOptions? = null, val cardBasedOptions: List<InstallmentOptionParams.CardBasedInstallmentOptions> = emptyList(), val amount: Amount? = null, val shopperLocale: Locale, val showInstallmentAmount: Boolean = false)

Component params class for Installments in Card Component. This class can be used to define installment options for all cards or specific CardBrand. defaultOptions and cardBasedOptions can be combined together. In that case InstallmentOptionParams from cardBasedOptions will override the option defined in defaultOptions.

Note: cardBasedOptions should contain only one InstallmentOptionParams.CardBasedInstallmentOptions instance for a CardBrand.

Parameters

defaultOptions

Installment Options to be used for all card types.

cardBasedOptions

Installment Options to be used for specific card types.

amount

Amount of the transaction.

shopperLocale

The Locale of the shopper.

showInstallmentAmount

A flag to show the installment amount.

Constructors

Link copied to clipboard
constructor(defaultOptions: InstallmentOptionParams.DefaultInstallmentOptions? = null, cardBasedOptions: List<InstallmentOptionParams.CardBasedInstallmentOptions> = emptyList(), amount: Amount? = null, shopperLocale: Locale, showInstallmentAmount: Boolean = false)

Properties

Link copied to clipboard
val amount: Amount? = null
Link copied to clipboard
Link copied to clipboard