Skip to content

Commit

Permalink
Merge pull request #1821 from Adyen/fix/card_number_validator_length_…
Browse files Browse the repository at this point in the history
…restricted

Restrict CardNumberValidator.MAXIMUM_CARD_NUMBER_LENGTH to library group
  • Loading branch information
ozgur00 authored Oct 11, 2024
2 parents 072f648 + 08ea712 commit c9fec23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion checkout-core/api/checkout-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ public final class com/adyen/checkout/core/ui/validation/CardNumberValidationRes

public final class com/adyen/checkout/core/ui/validation/CardNumberValidator {
public static final field INSTANCE Lcom/adyen/checkout/core/ui/validation/CardNumberValidator;
public static final field MAXIMUM_CARD_NUMBER_LENGTH I
public final fun validateCardNumber (Ljava/lang/String;Z)Lcom/adyen/checkout/core/ui/validation/CardNumberValidationResult;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package com.adyen.checkout.core.ui.validation

import androidx.annotation.RestrictTo
import com.adyen.checkout.core.internal.util.StringUtil

object CardNumberValidator {
Expand All @@ -18,6 +19,8 @@ object CardNumberValidator {

// Card Number
private const val MINIMUM_CARD_NUMBER_LENGTH = 12

@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
const val MAXIMUM_CARD_NUMBER_LENGTH = 19

/**
Expand Down

0 comments on commit c9fec23

Please sign in to comment.