Hello A.Sayal
If you have not received a purchase confirmation e-mail, and you are certain to have entered your e-mail address correctly, then the payment did not work.
Please make sure that your credit card supports 3D secure ID. This is a 2-way factor authentication required by many European webshops.
If the payments still fail, you might want purchasing the Swiss Travel Pass from the Switzerland Travel Center. Their webshop is less picky in what concerns the acceptance of payment cards.
https://www.swissrailways.com/en/buy-swiss-travel-pass
Kind regards,
Roland