Business::CPI::Types - Coersion and checks
version 0.908
Coersions and validations for the internal CPI attributes.
Most gateways require the money amount to be provided with two decimal places. This method coerces the value into number, and then to a string as expected by the gateways.
Examples:
Checks whether the phone number is in the correct format (+9999...).
Coerces phone numbers to contain an optional + sign in the beginning, indicating whether it contains the country code or not, and numbers only. Examples of accepted phone numbers, and their coerced values are:
André Walker <andre@andrewalker.net>
This software is copyright (c) 2013 by André Walker.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Business::CPI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::CPI
CPAN shell
perl -MCPAN -e shell install Business::CPI
For more information on module installation, please visit the detailed CPAN module installation guide.