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] ), sameAsShippingElement: SameAsShippingElement?, shippingValuesMap: Map<IdentifierSpec, String?>?) : 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] ), sameAsShippingElement: SameAsShippingElement?, shippingValuesMap: Map<IdentifierSpec, String?>?)

Functions

Link copied to clipboard
Link copied to clipboard
open override fun getTextFieldIdentifiers(): Flow<List<IdentifierSpec>>
Link copied to clipboard

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val identifier: IdentifierSpec
Link copied to clipboard