How can I use a quantity value from payment options?