Hello willlig
You can find possible reasons for the payment method being declined here:
https://www.sbb.ch/en/help-and-contact/invoices-payment-methods/method-of-payment.html#sbb791119
For foreign payment cards, the lack of «3D Secure verification» may be a possible reason for the decline. This additional layer of security is required by law or is the industry standard for many online payments in Europe and is therefore often required by European merchants. Please check with your card issuer to see if your card supports 3D Secure, including two-factor authentication (2FA).
If you have any questions about «3D Secure verification», please contact your card issuer’s customer support. You can usually find the phone number on the back of your card. If the first-level customer support team is not familiar with «3D Secure verification», it may be necessary to forward your inquiry to another issuer support team (e.g., the technical team for Visa Secure, Mastercard Identity Check, AMEX SafeKey, etc.).
Alternatively, you can also pay with Apple Pay or Google Pay in the SBB Mobile app.