wiki/content/20201112123704-cardscheme_constraint.md

472 B

date id title
20201112 c74d4f32-ff6b-419e-8ed7-eb0b018de44d CardScheme Constraint

See Universal Air Travel Plan1 for more details.

Syntax

// ...

class Transaction
{
    /**
     * @Assert\CardScheme(
     *     schemes={"AMEX", "MASTERCARD", "UATP", "VISA"},
     *     message="Your credit card number is invalid."
     * )
     */
    protected $cardNumber;
}

Footnotes