Skip to content

Commit

Permalink
Hide card brand logo list for bcmc
Browse files Browse the repository at this point in the history
COAND-795
  • Loading branch information
ozgur00 committed Nov 3, 2023
1 parent 4bf509f commit 0deb1b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,9 @@ class DefaultCardDelegate(
private fun isCardListVisible(
cardBrands: List<CardListItem>,
detectedCardTypes: List<DetectedCardType>
): Boolean = cardBrands.isNotEmpty() && detectedCardTypes.isEmpty()
): Boolean = cardBrands.isNotEmpty() &&
detectedCardTypes.isEmpty() &&
paymentMethod.type == PaymentMethodTypes.SCHEME

override fun getPaymentMethodType(): String {
return paymentMethod.type ?: PaymentMethodTypes.UNKNOWN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ internal class DefaultCardDelegateTest(
cardEncrypter: BaseCardEncrypter = this.cardEncrypter,
genericEncrypter: BaseGenericEncrypter = this.genericEncrypter,
configuration: CardConfiguration = getDefaultCardConfigurationBuilder().build(),
paymentMethod: PaymentMethod = PaymentMethod(),
paymentMethod: PaymentMethod = PaymentMethod(type = PaymentMethodTypes.SCHEME),
analyticsRepository: AnalyticsRepository = this.analyticsRepository,
submitHandler: SubmitHandler<CardComponentState> = this.submitHandler,
order: OrderRequest? = TEST_ORDER,
Expand Down

0 comments on commit 0deb1b4

Please sign in to comment.