Hi wavesurfer,Swiss Transfer Tickets can only be purchased online. The Swiss Card is for sale online too, and at a limited number of rail stations at airports and the Swiss border. This includes the Basel main station, but not Basel Bad Bf. I think it's easier to buy online in your case. Please see my answer to your other post. You can also find all purchase options at the Swiss Transfer Ticket page and Swiss Card page.
All you need to know about traveling by train, bus or car in Switzerland.
Hand picked Swiss hotels and other accommodations are right here.
Swiss Travel Pass promotion: 30% discountAvailable until 31 October 2022. Book 6 months ahead.https://shop.switzerlandtravelcentre.com/swisstravelpass