This demo is using the Payment Request API to ask the user for her credit card data.
You can add products and discounts to your cart, if you add the same products multiple times, the quantity of the line item is raised accordingly.
Please open your browser console to see debug data.