If you want to purchase the Swiss Travel Pass (which is a product completely unrelated to the confusingly named Swiss Pass) you can also do this here:
https://www.swissrailways.com/
This is an official source, but as the site is geared to tourists, not locals, you are less likely to buy the wrong product by mistake. Also it is less picky when it comes to credit cards…