message box if credit card expired

I'd like to display a message in sales order entry if the customer is using credit card terms and their credit card is expired. If you've done that already would you mind sharing the code?

Thanks.