I'm not so sure it is illegal in Canada.... I've done a bunch of searches and nothing points me to anything definitive about it. My credit card company and bank know what I am up to, yet they have not said I can't do it. Also I recently signed up for a GOLD card with my local B&M casino and one of the marketing questions was about how much do you gamble online. If it was illegal why would they ask the question? They might as well ask, to what degree to you break the law on a daily, weekly monthly basis
It is illegal to operate an online casino in Canada presumably because it conflicts with the government controlled Casino and Lottery systems. But for the individual player to play online casinos based outside of Canada I think it is ok.
It is also apparently perfectly ok to run a payment processing business geared towards online gambling, so long as your clients do not reside in Canada, such is the case with Neteller.

Furthermore, it is also ok to program and provide software to online casinos, as long you your company is not directly engaging in taking in bets, as is the case with outfits such as Chartwell Technologies
