How do you have your discount setup? If you want the customer to have a discount applied during checkout, instead of having them receive it afterwards, then a regular discount code isn’t what you need.
It sounds like what you’re looking for is an automatic discount.