Miles can only be earned based on the total spending amount of your transaction at the merchant, excluding delivery fees.