Returns 'true' if this payment card is applicable for the specified
customer, country and payment amount and the session currency.
The payment card is applicable if
the card is restricted by customer group, and at least one of the groups of the specified customer is assigned to the card
the card is restricted by billing country, and the specified country code is assigned to the card
the method is restricted by payment amount for the session currency, and the specified payment amount is within the limits of the min/max payment amount defined for the method and the session currency
the method is restricted by session currency, and the session currency code is assigned to the method
All parameters are optional, and if not specified, the respective
restriction won't be validated. For example, if a card is restricted by
billing country, but no country code is specified, this card will be
returned, unless it is filtered out by customer group or payment amount.
Parameters:
customer - Customer or null
countryCode - Billing country code or null
paymentAmount - Payment amount or null
Returns:
true if payment card is applicable, false otherwise
Verify the card against the provided values. This method is equivalent to
verify(Number, Number, String, String) but omits verification of the
card security code. If the verification fails the resulting
Status will hold up to 2 error items each with a code:
PaymentStatusCodes.CREDITCARD_INVALID_CARD_NUMBER- the cardNumber does not verify against one or more configured checks, which may include the Luhn checksum, accepted number lengths, or accepted number prefixes.
Parameters:
expiresMonth - expiration month as integer, 1 (January) to 12 (December)
expiresYear - expiration year as integer, e.g. 2025
cardNumber - card number, a string containing digital characters
PaymentStatusCodes.CREDITCARD_INVALID_CARD_NUMBER- the cardNumber does not verify against one or more configured checks, which may include the Luhn checksum, accepted number lengths, or accepted number prefixes.