At least over here in North America, class action participants are rarely ever required to pay legal fees, at least not upfront. The lawyers will take a massive percentage of the settlement amount off of the top and distribute the remainder among the action participants.
What is odd is that one can be included in a class action by default. As case in point, as recently as 2019 I received a cheque in the mail for settlement of damages having to do with a case against UPS for them having overcharged customers on in-house brokerage fees. It was quite some years ago that this actually happened, however I do recall getting charged what seemed an inordinate amount at the door for 'brokerage and handling fees', something over $100 extra on a NAIT that I had purchased from the US. I wasn't too fussed at the time, as the amp was being sold 'as is' and only needed a volume pot cleaning, however, it did stick in my mind never to agree to use UPS again (and I haven't).
Here we go...
"This notice is directed to Ontario Consumers who received a shipment from UPS using UPS’ Standard Service and utilizing a UPS Waybill or International Parcel Shipping Order, originating from an international destination, and who, during the period July 24, 2005 to August 27, 2011, paid Additional Fees to UPS upon delivery."
According to Google, UPS agreed to settle the litigation against it on the part of Ontario customers for $6,800,000 in 2018. ISTR receiving a cheque for $21.82 in Feb 2019.