Oslo-Flam should be booked as a single journey on www.vy.no. The mainline train (Oslo-Myrdal) varies in price. Buying early will probably save you money. Those trains can sell out in advance, too, which is another reason to go ahead and buy those tickets if your itinerary is firm. (Understand the rules on cancellations and changes, though.)
Do not ever use Rail Ninja. You will be overcharged (probably significantly), and if something goes wrong, you'll probably run into confiscatory service fees to fix the problem. Google "Rail Ninja reviews" and you'll see what I mean.
Always try to buy rail tickets from the company running the trains. If you cannot get that to work because of credit card difficulties and PayPal is not an option, I'd suggest using www.thetrainline.com. It charges modest service fees and has a very good reputation. I'm not positive it displays all the options on each route, but on your route I don't think that will be an issue at all.
NorwaysBest sells tickets on the other ferry line (Fjord 1?). I believe Aurland is a request stop for those ferries. I'm not sure about Lustrabaatane. I hope another poster can help you on that point.
I just bought my Gudvangen-Voss bus ticket from the driver, but that was back in 2022, and more people are riding those buses now. It might be a good idea to buy the ticket ahead of time from www.skyss.no. Bus 950 is the one that originates right down near the dock. I believe Bus 450 picks up a short but uphill walk away. You can find the schedule on the Skyss website. I believe there are a few others on the schedule (through buses originating elsewhere). The current fare on Bus 450 seems to be Kr. 78; the othes might be different.
The train ticket from Voss to Bergen should be purchased from Vy. Those are local trains with no assigned seats, so they cannot sell out and the fare doesn't vary, so there's no rush. As far as I know, there's no reason you can't wait till you arrive in Voss and just buy the ticket from a vending machine--except that it would be a shame to miss a train departing for Bergen while you're doing that.