Skip to content

Commit defc3de

Browse files
cttsai-stripecodex
andcommitted
Fix shared billing country identifier
Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com>
1 parent 7a8fe60 commit defc3de

4 files changed

Lines changed: 1 addition & 6 deletions

File tree

payments-ui-core/src/main/java/com/stripe/android/ui/core/elements/BillingAddressElement.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class BillingAddressElement(
7979
CountryConfig(countryCodes),
8080
rawValuesMap[IdentifierSpec.Country]
8181
),
82-
countryElementIdentifier: IdentifierSpec,
8382
autocompleteAddressInteractorFactory: AutocompleteAddressInteractor.Factory?,
8483
sameAsShippingElement: SameAsShippingElement?,
8584
shippingValuesMap: Map<IdentifierSpec, String?>?,
@@ -133,7 +132,7 @@ class BillingAddressElement(
133132
emailConfig = emailConfig,
134133
),
135134
countryElement = CountryElement(
136-
identifier = countryElementIdentifier,
135+
identifier = IdentifierSpec.Country,
137136
controller = countryDropdownFieldController,
138137
),
139138
shippingValuesMap = shippingValuesMap,

payments-ui-core/src/test/java/com/stripe/android/ui/core/elements/CardBillingAddressElementTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ internal class CardBillingAddressElementTest {
312312
rawValuesMap = emptyMap(),
313313
countryCodes = emptySet(),
314314
countryDropdownFieldController = dropdownFieldController,
315-
countryElementIdentifier = IdentifierSpec.Country,
316315
autocompleteAddressInteractorFactory = null,
317316
sameAsShippingElement = null,
318317
shippingValuesMap = null,
@@ -383,7 +382,6 @@ internal class CardBillingAddressElementTest {
383382
rawValuesMap = emptyMap(),
384383
countryCodes = emptySet(),
385384
countryDropdownFieldController = dropdownFieldController,
386-
countryElementIdentifier = IdentifierSpec.Country,
387385
autocompleteAddressInteractorFactory = {
388386
object : AutocompleteAddressInteractor {
389387
override val autocompleteConfig: AutocompleteAddressInteractor.Config =

paymentsheet/src/main/java/com/stripe/android/lpmfoundations/paymentmethod/definitions/CardDefinition.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ private fun cardBillingElements(
290290
IdentifierSpec.Generic("credit_billing"),
291291
countryCodes = allowedCountries,
292292
rawValuesMap = initialValues,
293-
countryElementIdentifier = IdentifierSpec.Country,
294293
sameAsShippingElement = sameAsShippingElement,
295294
shippingValuesMap = shippingValues,
296295
addressCollectionMode = cardBillingAddressCollectionMode(

paymentsheet/src/main/java/com/stripe/android/paymentsheet/ui/BillingDetailsForm.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ internal class BillingDetailsForm(
4444
sameAsShippingElement = null,
4545
shippingValuesMap = null,
4646
countryCodes = allowedBillingCountries,
47-
countryElementIdentifier = IdentifierSpec.Country,
4847
collectionConfiguration = BillingDetailsCollectionConfiguration(
4948
address = when (addressCollectionMode) {
5049
AddressCollectionMode.Automatic ->

0 commit comments

Comments
 (0)