The free-spending e-commerce giant posted its fourth straight quarterly profit, boosted by a 28 percent rise in sales.