Would this work?
Let's say I deposit money to an online gambling site with a credit card. If it's registered as a purchase, that would mean I'd get miles from it. Then I withdraw the money without betting (or bet just enough to also get a bonus from the casino) and repeat the process.