Amazon is selling a service that is sold at, say, CVS. And CVS makes a profit off of that service. CVS gets all of the cash, Amazon ends up with most, but not all, of it. Traditional credit card companies can charge somewhere in the realm of 1-3% or so on transactions, so imagine that CVS retains a similar or lesser cut.