MooseX::Types::CyberSource - Moose Types specific to CyberSource
version 0.005004
{ package My::CyberSource::Response; use Moose; use MooseX::Types::CyberSource qw( Decision ); has decision => ( is => 'ro', isa => Decision, ); __PACKAGE__->meta->make_immutable; } my $response = My::CyberSource::Response->new({ decison => 'ACCEPT' });
This module provides CyberSource specific Moose Types.
Decision
Base Type: enum
enum
CyberSource Response Decision
CardTypeCode
Numeric codes that specify Card types. Codes denoted with an asterisk* are automatically detected when using Business::CyberSource::Request::Role::CreditCardInfo
001: Visa*
002: MasterCard, Eurocard*
003: American Express*
004: Discover*
005: Diners Club
006: Carte Blanche
007: JCB*
014: EnRoute*
021: JAL
024: Maestro (UK Domestic)
031: Delta
033: Visa Electron
034: Dankort
035: Laser*
036: Carte Bleue
037: Carta Si
039: Encoded account number
040: UATP
042: Maestro (International)
043: Santander card
CvResults
Single character code that defines the result of having sent a CVN. See CyberSource's Documentation on Card Verification Results for more information.
AVSResults
Single character code that defines the result of having sent a CVN. See CyberSource's Documentation on AVS Results for more information.
DCCIndicator
Single character code that defines the DCC status
1
Converted - DCC is being used.
2
Non-convertible - DCC cannot be used.
3
Declined - DCC could be used, but the customer declined it.
Item
Base Type: Dict
Dict
Here's the current list of valid keys and their types for the Dictionary
unit_price => PositiveOrZeroNum, quantity => Int, product_code => Optional[Str], product_name => Optional[Str], product_sku => Optional[Str], product_risk => Optional[Str], tax_amount => Optional[PositiveOrZeroNum], tax_rate => Optional[PositiveOrZeroNum], national_tax => Optional[PositiveOrZeroNum],
Please report any bugs or feature requests on the bugtracker website https://github.com/xenoterracide/Business-CyberSource/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Caleb Cushing <xenoterracide@gmail.com>
This software is Copyright (c) 2011 by Caleb Cushing.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Business::CyberSource, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::CyberSource
CPAN shell
perl -MCPAN -e shell install Business::CyberSource
For more information on module installation, please visit the detailed CPAN module installation guide.