Despite 5% of users abandoning checkouts due to credit card validation errors, 80% websites don't actively aid their users in typing and validating the 16-digit card number by auto-formatting it with spaces
E-Commerce Checkouts Need to Mark Both Required Fields and
How to design a credit card form for an online store?
Format the “Expiration Date” Fields Exactly the Same as the
E-Commerce Checkouts Need to Mark Both Required Fields and
5 'Credit Card Form' Implementations That Make 'L.L. Bean' Best-in
Use a Fake 'Editing' Flow When Users Try to Update Their Stored
E-Commerce Checkouts Need to Mark Both Required Fields and
Use a Fake 'Editing' Flow When Users Try to Update Their Stored
Format the “Expiration Date” Fields Exactly the Same as the
Form Design: 6 Best Practices for Better E-Commerce UI – Baymard
64 Cart & Checkout UX Articles – Baymard Institute