CardBillingAddressElement

class CardBillingAddressElement(    val identifier: IdentifierSpec,     rawValuesMap: Map<IdentifierSpec, String?> = emptyMap(),     addressRepository: AddressRepository,     countryCodes: Set<String> = emptySet(),     countryDropdownFieldController: DropdownFieldController = DropdownFieldController( CountryConfig(countryCodes), rawValuesMap[IdentifierSpec.Country] ),     sameAsShippingController: SameAsShippingController?) : AddressElement

This is a special type of AddressElement that removes fields from the address based on the country. It is only intended to be used with the card payment method.

Constructors

Link copied to clipboard
fun CardBillingAddressElement(    identifier: IdentifierSpec,     rawValuesMap: Map<IdentifierSpec, String?> = emptyMap(),     addressRepository: AddressRepository,     countryCodes: Set<String> = emptySet(),     countryDropdownFieldController: DropdownFieldController = DropdownFieldController( CountryConfig(countryCodes), rawValuesMap[IdentifierSpec.Country] ),     sameAsShippingController: SameAsShippingController?)

Functions

Link copied to clipboard
open override fun getFormFieldValueFlow(): Flow<List<Pair<IdentifierSpec, FormFieldEntry>>>
Link copied to clipboard
open override fun getTextFieldIdentifiers(): Flow<List<IdentifierSpec>>
Link copied to clipboard
open override fun sectionFieldErrorController(): SectionFieldErrorController

This will return a controller that abides by the SectionFieldErrorController interface.

Link copied to clipboard
open override fun setRawValue(rawValuesMap: Map<IdentifierSpec, String?>)

Properties

Link copied to clipboard
val controller: AddressController
Link copied to clipboard
val countryElement: CountryElement
Link copied to clipboard
val fields: Flow<List<SectionFieldElement>>
Link copied to clipboard
val hiddenIdentifiers: Flow<List<IdentifierSpec>>
Link copied to clipboard
open override val identifier: IdentifierSpec
Link copied to clipboard
open val shouldRenderOutsideCard: Boolean