CardBillingAddressElement
class CardBillingAddressElement( val identifier: IdentifierSpec, addressFieldRepository: AddressFieldElementRepository, countryCodes: Set<String> = emptySet(), countryDropdownFieldController: DropdownFieldController = DropdownFieldController(
CountryConfig(countryCodes)
), rawValuesMap: Map<IdentifierSpec, String?> = emptyMap()) : AddressElement
Content copied to clipboard
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, addressFieldRepository: AddressFieldElementRepository, countryCodes: Set<String> = emptySet(), countryDropdownFieldController: DropdownFieldController = DropdownFieldController(
CountryConfig(countryCodes)
), rawValuesMap: Map<IdentifierSpec, String?> = emptyMap())
Content copied to clipboard
Functions
Link copied to clipboard
open override fun getFormFieldValueFlow(): Flow<List<Pair<IdentifierSpec, FormFieldEntry>>>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun sectionFieldErrorController(): SectionFieldErrorController
Content 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?>)
Content copied to clipboard