Error messageCard number: invalid format
DescriptionThe card number’s format provided for the card registration is invalid.
Categories
Card registration

Causes

This error may occur when the end user:

  • Makes a mistake when entering their card number
  • Tries to provide a card which does not correspond to the selected card type (and therefore the format doesn’t match)

What to do

In such cases, end users need to check their card information and retry.

Example

In the example below, the end user tried to register a card “Mastercard” (16 numbers) as an “AMEX” (15 numbers).

API Response
{
    "Id":"236699957",
    "Tag":null,
    "CreationDate":1650633567,
    "UserId":"999924896",
    "AccessKey":"1X0m87dmM2LiwFgxPLBJ",
    "PreregistrationData":"dtxlzFRSvUcdNkJimn-i_E9CO8GG2_UkinMagHuUUTmnXzGFUsakUMAhT2m7ywSD2ddFLVXdicolcUIkv_kKEA",
    "RegistrationData":"errorCode=02625",
    "CardId":null,
    "CardType":"AMEX",
    "CardRegistrationURL":"https://webpayment.payline.com/webpayment/getToken",
    "ResultCode":"105202",
    "ResultMessage":"Card number: invalid format",
    "Currency":"EUR",
    "Status":"ERROR"
}