On Mon Nov 09 16:13:12 2009, GHENRY wrote:
Show quoted text> Will do a patch plus should we use Moose::Util::TypeConstraints to stop
> silly mistakes and do some validation on passed data? Not sure if that's
> the right tool to use.
>
> Or should we just do that in the application that is using
> Business::OnlinePayment::Iridium
Usually i do that in application using custom Moose subtypes, as checking if the CardNumber is
a valid card type with Business::CardInfo, then the end user of app has a chance to fix the form
issues and submit again. What we have in BOP::Iridium is for simple validation, like checking the
CardNumber is a integer.