Hello lauratravelunrivaled
For the majority of European webshops, including the one from SBB, you must have 3D Secure ID activated with your credit card.
This is an additional security layer also known as 2FA authentication. Talk to your card issuer to know if your card has it activated.
Furthermore, while purchasing a ticket, entering all passenger data in full capital letters is recommended.
Kind regards,
Roland