Skip to content

Commit

Permalink
Add this function back as not ready to deprecate.
Browse files Browse the repository at this point in the history
  • Loading branch information
michelleb-stripe committed Sep 7, 2021
1 parent 3d95c52 commit 4d368f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion payments-core/src/main/java/com/stripe/android/CardUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ internal object CardUtils {
* @return the [CardBrand] that matches the card number based on prefixes,
* or [CardBrand.Unknown] if it can't be determined
*/
internal fun getPossibleCardBrand(cardNumber: String?): CardBrand {
@Deprecated("CardInputWidget and CardMultilineWidget handle card brand lookup. This method should not be relied on for determining CardBrand.")
@JvmStatic
fun getPossibleCardBrand(cardNumber: String?): CardBrand {
return if (cardNumber.isNullOrBlank()) {
CardBrand.Unknown
} else {
Expand Down

0 comments on commit 4d368f4

Please sign in to comment.