Skip to content

Commit

Permalink
Remove instantDebitsBillingDetails feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
tillh-stripe committed Nov 12, 2024
1 parent 51e452c commit 176395c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.lifecycle.viewmodel.CreationExtras
import com.stripe.android.PaymentConfiguration
import com.stripe.android.core.strings.ResolvableString
import com.stripe.android.core.strings.resolvableString
import com.stripe.android.core.utils.FeatureFlags
import com.stripe.android.core.utils.requireApplication
import com.stripe.android.financialconnections.FinancialConnectionsSheet.ElementsSessionContext
import com.stripe.android.financialconnections.model.BankAccount
Expand Down Expand Up @@ -502,11 +501,7 @@ internal class USBankAccountFormViewModel @Inject internal constructor(
amount = args.formArgs.amount?.value,
currency = args.formArgs.amount?.currencyCode,
linkMode = args.linkMode,
billingDetails = if (FeatureFlags.instantDebitsBillingDetails.isEnabled) {
makeElementsSessionContextBillingDetails()
} else {
null
},
billingDetails = makeElementsSessionContextBillingDetails(),
prefillDetails = makePrefillDetails(),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import com.google.common.truth.Truth.assertThat
import com.stripe.android.ApiKeyFixtures
import com.stripe.android.PaymentConfiguration
import com.stripe.android.core.strings.resolvableString
import com.stripe.android.core.utils.FeatureFlags
import com.stripe.android.financialconnections.FinancialConnectionsSheet.ElementsSessionContext
import com.stripe.android.financialconnections.model.BankAccount
import com.stripe.android.financialconnections.model.FinancialConnectionsAccount
Expand All @@ -30,7 +29,6 @@ import com.stripe.android.paymentsheet.PaymentSheet.BillingDetailsCollectionConf
import com.stripe.android.paymentsheet.model.PaymentSelection
import com.stripe.android.paymentsheet.model.PaymentSelection.CustomerRequestedSave
import com.stripe.android.paymentsheet.paymentdatacollection.FormArguments
import com.stripe.android.testing.FeatureFlagTestRule
import com.stripe.android.ui.core.Amount
import com.stripe.android.ui.core.cbc.CardBrandChoiceEligibility
import com.stripe.android.uicore.elements.IdentifierSpec
Expand All @@ -39,7 +37,6 @@ import kotlinx.coroutines.test.UnconfinedTestDispatcher
import kotlinx.coroutines.test.resetMain
import kotlinx.coroutines.test.runTest
import kotlinx.coroutines.test.setMain
import org.junit.Rule
import org.junit.runner.RunWith
import org.mockito.kotlin.any
import org.mockito.kotlin.anyOrNull
Expand Down Expand Up @@ -85,12 +82,6 @@ class USBankAccountFormViewModelTest {
private val mockCollectBankAccountLauncher = mock<CollectBankAccountLauncher>()
private val savedStateHandle = SavedStateHandle()

@get:Rule
val instantDebitsBillingDetailsFeatureRule = FeatureFlagTestRule(
featureFlag = FeatureFlags.instantDebitsBillingDetails,
isEnabled = true,
)

@BeforeTest
fun setUp() {
Dispatchers.setMain(UnconfinedTestDispatcher())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import com.stripe.android.core.BuildConfig
object FeatureFlags {
// Add any feature flags here
val nativeLinkEnabled = FeatureFlag("Native Link")
val instantDebitsBillingDetails = FeatureFlag("IBP Billing Details")
val instantDebitsDeferredIntent = FeatureFlag("IBP Deferred")
val useNewUpdateCardScreen = FeatureFlag("Enable new update card screen")
}
Expand Down

0 comments on commit 176395c

Please sign in to comment.