Deciding to accept both three- and four-digit security codes at checkout
قرار قبول رموز الأمان المكوّنة من ثلاثة أرقام ومن أربعة أرقام عند إتمام الدفع
The decision: one field, two accepted lengths
The decision in front of a merchant is whether the card security code field accepts one fixed length or both of the lengths that real cards use. Published form guidance has long recommended the second option: allow three or four digits, set a minimum of three characters and a maximum of four, and accept numbers only. That is standing reference material rather than a fresh announcement, so treat it as a design choice to review, not news to react to. The tradeoff is concrete. A rule that demands exactly three digits is easy to describe in a help page, but it rejects a valid code printed on a card that uses four. Allowing both lengths keeps one field for every card type you support, and keeps the shopper's entry moving without a correction they cannot make.
What it looks like on a real checkout
Picture two ordinary orders. A shopper buying a wool scarf pays with a card that prints a four-digit code; a shopper buying a ceramic mug pays with one that prints three digits. Both should clear the same field on your checkout page, and neither should see an error that suggests they typed something wrong. Three details shape that outcome. Label the field in plain words such as security code, rather than an acronym that only some card brands use. Show a numeric keyboard on phones so the entry matches the format you asked for. Keep the field required, so an incomplete form cannot be submitted at all. None of this needs a card-type selector, since the payment processor works the brand out from the card number itself.
Checks a merchant can run this week
Here are checks a merchant can try, in order. First, attempt a test purchase on each card type you accept, entering a three-digit code on one and a four-digit code on another; both should complete. Second, enter letters in the security code field and read the message that appears; it should say what belongs there, not simply that the entry is invalid. Third, complete the checkout using only the keyboard, then again with a screen reader such as the ones available on desktop and mobile, and confirm the field is announced with its label. Fourth, open the checkout on a phone and check which keyboard appears. A merchant can also try leaving the field empty to confirm the form blocks submission. Write down anything that fails, and fix the rule rather than the shopper.
Sources
القرار: حقل واحد، طولان مقبولان
القرار المطروح أمام التاجر هو ما إذا كان حقل رمز الأمان للبطاقة يقبل طولًا ثابتًا واحدًا أم كلا الطولين اللذين تستخدمهما البطاقات الفعلية. وقد أوصت إرشادات النماذج المنشورة منذ زمن طويل بالخيار الثاني: السماح بثلاثة أو أربعة أرقام، وتعيين حد أدنى من ثلاثة محارف وحد أقصى من أربعة، وقبول الأرقام فقط. هذه مادة مرجعية قائمة وليست إعلانًا جديدًا، لذا تعامل معها كخيار تصميمي ينبغي مراجعته، لا كخبر يجب التفاعل معه. والمفاضلة ملموسة. القاعدة التي تشترط ثلاثة أرقام بالضبط يسهل وصفها في صفحة مساعدة، لكنها ترفض رمزًا صالحًا مطبوعًا على بطاقة تستخدم أربعة. والسماح بالطولين يحافظ على حقل واحد لكل نوع بطاقة تدعمه، ويُبقي إدخال المتسوق مستمرًا دون تصحيح لا يستطيع إجراءه.
كيف يبدو على صفحة دفع حقيقية
تخيّل طلبيّتين عاديتين. متسوّق يشتري وشاحًا من الصوف يدفع ببطاقة تطبع رمزًا من أربعة أرقام؛ ومتسوّق يشتري كوبًا من الخزف يدفع بأخرى تطبع ثلاثة أرقام. ينبغي أن يمرّ كلٌّ منهما عبر الحقل نفسه في صفحة إتمام الشراء لديك، وألّا يرى أيٌّ منهما رسالة خطأ توحي بأنّه أدخل شيئًا خاطئًا. ثلاثة تفاصيل هي التي تصنع تلك النتيجة. ضع للحقل تسمية بكلمات واضحة مثل «رمز الأمان»، لا باختصار لا تستخدمه سوى بعض علامات البطاقات. واعرض لوحة مفاتيح رقمية على الهواتف كي يطابق المُدخل الصيغة التي طلبتها. وأبقِ الحقل إلزاميًا، كي يتعذّر إرسال نموذج غير مكتمل على الإطلاق. ولا يحتاج أيٌّ من هذا إلى محدِّد لنوع البطاقة، لأنّ معالج الدفع يستنتج العلامة من رقم البطاقة نفسه.
فحوصات يمكن للتاجر إجراؤها هذا الأسبوع
فيما يلي الفحوص التي يمكن للتاجر تجربتها بالترتيب. أولًا، جرّب عملية شراء تجريبية على كل نوع بطاقة تقبله، بإدخال رمز من ثلاثة أرقام على واحدة ورمز من أربعة أرقام على أخرى؛ وينبغي أن تكتمل العمليتان. ثانيًا، أدخل حروفًا في حقل رمز الأمان واقرأ الرسالة التي تظهر؛ وينبغي أن توضح ما يجب إدخاله فيه، لا أن تكتفي بالقول إن الإدخال غير صالح. ثالثًا، أكمل إتمام الشراء باستخدام لوحة المفاتيح وحدها، ثم مرة أخرى باستخدام قارئ شاشة مثل المتاح على الحاسوب المكتبي والهاتف المحمول، وتأكد من أن الحقل يُعلن مع تسميته. رابعًا، افتح صفحة إتمام الشراء على هاتف وتحقق من لوحة المفاتيح التي تظهر. ويمكن للتاجر أيضًا أن يجرّب ترك الحقل فارغًا للتأكد من أن النموذج يمنع الإرسال. دوّن كل ما يفشل، وأصلح القاعدة لا المتسوق.
المصادر
Ready to Build Your Online Store?
Join thousands of businesses on BuiBuy. Create your store in minutes — no coding required.
Start for Free