By default the shopping cart in FoxyCart accepts Discover cards.
If your client doesn’t want to accept Discover card credit cards you need to remove it from the checkout. This is a rather simple process.
The first step is to remove the Discover image from the FoxyCart checkout. Login to your FoxyCart account, and click on the language link at the top. Scroll down the page and open the checkout section. Within this section you’ll find where the Discover image code is located; delete this. You’ll also see an error which mentions Discover, change this text so it no longer mentions Discover. Click update when you are finished.
At this point your checkout page will no longer have the Discover image.
There is a problem however, if somebody enters their Discover card and submits the info the transaction will still go through, because we just simply removed the image. What we want to do is to fire an error letting the user know that Discover is not accepted. The simplest way to accomplish this is to add the following code into the head of your checkout template. What this code does is fire an error if the user starts their credit card number with the number 6, which is the start of Discover Card credit numbers.
After you install this code and update your checkout template try typing six into the credit card number, this should be your result:
jQuery code from admin at FoxyCart.