[ic] [Patch] Allow variable to override default LUHN-10 error message

Peter peter at pajamian.dhs.org
Wed Sep 30 09:44:59 UTC 2009


On 09/29/2009 11:25 PM, Stefan Hornburg (Racke) wrote:
> Richard Templet wrote:
>> This is a small patch that will give folks the ability to override the
>> default error that comes up with someone's credit card doesn't pass the
>> Luhn-10 check.
>>
>> http://github.com/rmtemplet/interchange/commit/abac9e7bed3cf86218add6062d023b710cc19a73
>>
> 
> Why not
> 
> Locale en_US "Credit card number fails LUHN-10 check." "Invalid credit card 
> number."
> 
> in catalog.cfg?

I actually considered that, but felt it was bad form to have a
customer-facing message hard coded in the core, so I thought it was a
good patch.


Peter




More information about the interchange-users mailing list