From 4feab89874afad1e9e6a600d193ac796112a67f9 Mon Sep 17 00:00:00 2001 From: stdOWL Date: Mon, 29 Sep 2025 13:58:57 +0100 Subject: [PATCH] Add TROY support --- src/Common/CreditCard.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Common/CreditCard.php b/src/Common/CreditCard.php index a1f97d0..2bd9eff 100644 --- a/src/Common/CreditCard.php +++ b/src/Common/CreditCard.php @@ -107,6 +107,7 @@ class CreditCard const BRAND_MAESTRO = 'maestro'; const BRAND_FORBRUGSFORENINGEN = 'forbrugsforeningen'; const BRAND_LASER = 'laser'; + const BRAND_TROY = 'troy'; /** * All known/supported card brands, and a regular expression to match them. @@ -133,6 +134,7 @@ class CreditCard self::BRAND_MAESTRO => '/^(5[06-8]|6\d)\d{10,17}$/', self::BRAND_FORBRUGSFORENINGEN => '/^600722\d{10}$/', self::BRAND_LASER => '/^(6304|6706|6709|6771(?!89))\d{8}(\d{4}|\d{6,7})?$/', + self::BRAND_TROY => '/^(?:9792|65\d{2}|36|2205)\d{12}$/', ); /**