File tree 3 files changed +3
-7
lines changed
paymentsheet/src/main/java/com/stripe/android
lpmfoundations/paymentmethod
3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import com.stripe.android.common.coroutines.CoalescingOrchestrator
5
5
import com.stripe.android.common.exception.stripeErrorMessage
6
6
import com.stripe.android.core.injection.IOContext
7
7
import com.stripe.android.customersheet.CustomerAdapter.PaymentOption.Companion.toPaymentOption
8
- import com.stripe.android.lpmfoundations.paymentmethod.CAN_REMOVE_DUPLICATES_CUSTOMER_SHEET_VALUE
9
8
import com.stripe.android.model.PaymentMethod
10
9
import com.stripe.android.model.PaymentMethodUpdateParams
11
10
import com.stripe.android.paymentsheet.PaymentSheet
@@ -115,7 +114,7 @@ internal class StripeCustomerAdapter @Inject internal constructor(
115
114
customerSessionClientSecret = null ,
116
115
),
117
116
paymentMethodId = paymentMethodId,
118
- canRemoveDuplicates = CAN_REMOVE_DUPLICATES_CUSTOMER_SHEET_VALUE ,
117
+ canRemoveDuplicates = false ,
119
118
).getOrElse {
120
119
return CustomerAdapter .Result .failure(
121
120
cause = it,
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package com.stripe.android.customersheet.data
3
3
import com.stripe.android.core.injection.IOContext
4
4
import com.stripe.android.customersheet.util.filterToSupportedPaymentMethods
5
5
import com.stripe.android.customersheet.util.getDefaultPaymentMethodsEnabledForCustomerSheet
6
- import com.stripe.android.lpmfoundations.paymentmethod.CAN_REMOVE_DUPLICATES_CUSTOMER_SHEET_VALUE
7
6
import com.stripe.android.model.PaymentMethod
8
7
import com.stripe.android.model.PaymentMethodUpdateParams
9
8
import com.stripe.android.payments.core.analytics.ErrorReporter
@@ -71,7 +70,7 @@ internal class CustomerSessionPaymentMethodDataSource @Inject constructor(
71
70
ephemeralKeySecret = ephemeralKey.ephemeralKey,
72
71
customerSessionClientSecret = ephemeralKey.customerSessionClientSecret,
73
72
),
74
- canRemoveDuplicates = CAN_REMOVE_DUPLICATES_CUSTOMER_SHEET_VALUE ,
73
+ canRemoveDuplicates = true ,
75
74
paymentMethodId = paymentMethodId,
76
75
).getOrThrow()
77
76
}.toCustomerSheetDataResult()
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ import com.stripe.android.customersheet.data.CustomerSheetSession
7
7
import com.stripe.android.model.ElementsSession
8
8
import kotlinx.parcelize.Parcelize
9
9
10
- internal const val CAN_REMOVE_DUPLICATES_CUSTOMER_SHEET_VALUE = true
11
-
12
10
@Parcelize
13
11
internal data class CustomerMetadata (
14
12
val hasCustomerConfiguration : Boolean ,
@@ -78,7 +76,7 @@ internal data class CustomerMetadata(
78
76
return Permissions (
79
77
canRemovePaymentMethods = customerSheetSession.permissions.canRemovePaymentMethods,
80
78
canRemoveLastPaymentMethod = configuration.allowsRemovalOfLastSavedPaymentMethod,
81
- canRemoveDuplicates = CAN_REMOVE_DUPLICATES_CUSTOMER_SHEET_VALUE ,
79
+ canRemoveDuplicates = true ,
82
80
)
83
81
}
84
82
You can’t perform that action at this time.
0 commit comments