If you buy the Junior Card as a tourist, it will be issued as paper ticket. It does not need a photo - but, the parents are required to have a physical passport or ID when travelling with the child as the parent’s names are mentioned on the Junior Card, too. The Junior Card is only valid provided the child travels with at least one parent and the latter holds a valid ticket.
The SwissPass card is used for children residing in Switzerland.
Please let us know should you have further queries.