Will I be taxed on the total purchase amount before or after the discounted price?

Taxes are calculated based on the discounted price.