How do I set up payment to calculate a quantity of the same item