We are using Payments.Manual and need to remove American Express and Discover from the list of accepted cards.
There have been several posts about this in the past. It requires custom changes to the plugin source code. (I think someone did contribute a modified version a long time ago, but I don't see it in the marketplace anymore)
a quick follow up:
the above will only stop those options from showing in the dropdown menu, a customer could still enter an Amex or Disco cc# and I did not see any validation to prevent it.
Typically a DIsco card begins with '6' and Amex with '3', but there is probably a more definitive regex out there to be found.
I looked in the Plugins\Payments.Manual\Views and the file you indicated to edit does not exist.
The only files in the directory are:
And they don't appear to contain the code you provided.
Thank you, I'll have to have the IT guys take a look as this is beyond me.
you could also filter them out in the cshtml files, but you would still have the same concern of no real validation to prevent them from being used.