« Business/CyberSource/Response/Role/DCC.pm
↑ Summary
Business/CyberSource/Response/Role/ProcessorResponse.pm »
| 1 | package Business::CyberSource::Response::Role::ElectronicVerification; | ||
| 2 | |||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 4 | our $VERSION = '0.010007'; # VERSION | |
| 7 | |||
| 8 | 4 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 4 | ▶ | use MooseX::RemoteHelper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 4 | ▶ | use MooseX::Types::CyberSource qw(ElectronicVerificationResult); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 4 | has ev_email => ( | |
| 13 | is => 'ro', | ||
| 14 | isa => ElectronicVerificationResult, | ||
| 15 | remote_name => 'evEmail', | ||
| 16 | predicate => 'has_ev_email', | ||
| 17 | required => 0, | ||
| 18 | ); | ||
| 19 | |||
| 20 | 4 | has ev_phone_number => ( | |
| 21 | is => 'ro', | ||
| 22 | isa => ElectronicVerificationResult, | ||
| 23 | remote_name => 'evPhoneNumber', | ||
| 24 | predicate => 'has_ev_phone_number', | ||
| 25 | required => 0, | ||
| 26 | ); | ||
| 27 | |||
| 28 | 4 | has ev_postal_code => ( | |
| 29 | is => 'ro', | ||
| 30 | isa => ElectronicVerificationResult, | ||
| 31 | remote_name => 'evPostalCode', | ||
| 32 | predicate => 'has_ev_postal_code', | ||
| 33 | required => 0, | ||
| 34 | ); | ||
| 35 | |||
| 36 | 4 | has ev_name => ( | |
| 37 | is => 'ro', | ||
| 38 | isa => ElectronicVerificationResult, | ||
| 39 | remote_name => 'evName', | ||
| 40 | predicate => 'has_ev_name', | ||
| 41 | required => 0, | ||
| 42 | ); | ||
| 43 | |||
| 44 | 4 | has ev_street => ( | |
| 45 | is => 'ro', | ||
| 46 | isa => ElectronicVerificationResult, | ||
| 47 | remote_name => 'evStreet', | ||
| 48 | predicate => 'has_ev_street', | ||
| 49 | required => 0, | ||
| 50 | ); | ||
| 51 | |||
| 52 | 4 | has ev_email_raw => ( | |
| 53 | is => 'ro', | ||
| 54 | isa => ElectronicVerificationResult, | ||
| 55 | remote_name => 'evEmailRaw', | ||
| 56 | predicate => 'has_ev_email_raw', | ||
| 57 | required => 0, | ||
| 58 | ); | ||
| 59 | |||
| 60 | 4 | has ev_phone_number_raw => ( | |
| 61 | is => 'ro', | ||
| 62 | isa => ElectronicVerificationResult, | ||
| 63 | remote_name => 'evPhoneNumberRaw', | ||
| 64 | predicate => 'has_ev_phone_number_raw', | ||
| 65 | required => 0, | ||
| 66 | ); | ||
| 67 | |||
| 68 | 4 | has ev_postal_code_raw => ( | |
| 69 | is => 'ro', | ||
| 70 | isa => ElectronicVerificationResult, | ||
| 71 | remote_name => 'evPostalCodeRaw', | ||
| 72 | predicate => 'has_ev_postal_code_raw', | ||
| 73 | required => 0, | ||
| 74 | ); | ||
| 75 | |||
| 76 | 4 | has ev_name_raw => ( | |
| 77 | is => 'ro', | ||
| 78 | isa => ElectronicVerificationResult, | ||
| 79 | remote_name => 'evNameRaw', | ||
| 80 | predicate => 'has_ev_name_raw', | ||
| 81 | required => 0, | ||
| 82 | ); | ||
| 83 | |||
| 84 | 4 | has ev_street_raw => ( | |
| 85 | is => 'ro', | ||
| 86 | isa => ElectronicVerificationResult, | ||
| 87 | remote_name => 'evStreetRaw', | ||
| 88 | predicate => 'has_ev_street_raw', | ||
| 89 | required => 0, | ||
| 90 | ); | ||
| 91 | |||
| 92 | 4 | 1; | |
| 93 | |||
| 94 | # ABSTRACT: Electronic Verification Information | ||
| 95 | |||
| 96 | __END__ | ||
| 97 | |||
| 98 | =pod | ||
| 99 | |||
| 100 | =encoding UTF-8 | ||
| 101 | |||
| 102 | =head1 NAME | ||
| 103 | |||
| 104 | Business::CyberSource::Response::Role::ElectronicVerification - Electronic Verification Information | ||
| 105 | |||
| 106 | =head1 VERSION | ||
| 107 | |||
| 108 | version 0.010007 | ||
| 109 | |||
| 110 | =head1 DESCRIPTION | ||
| 111 | |||
| 112 | When performing Authorization requests for American Express credit cards for some processors | ||
| 113 | CyberSource will respond with Electronic Verification Information. This Role implements support | ||
| 114 | for them. | ||
| 115 | |||
| 116 | All attributes have values according to CyberSource's documentation available at | ||
| 117 | L<http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SO_API/Credit_Cards_SO_API.pdf> | ||
| 118 | |||
| 119 | There are two types of attributes, B<raw> are values specified by your payment processor while | ||
| 120 | all other attributes are mapped by CyberSource from values specified by the payment processor. | ||
| 121 | It is strongly recommended that you avoid the raw values if possible to account for differences | ||
| 122 | in payment processors. | ||
| 123 | |||
| 124 | The possible values for the mapped fields include (shamelessly taken from CyberSource's Documentation): | ||
| 125 | |||
| 126 | =over 4 | ||
| 127 | |||
| 128 | =item 'N' | ||
| 129 | |||
| 130 | No, the data does not match. | ||
| 131 | |||
| 132 | =item 'P' | ||
| 133 | |||
| 134 | The processor did not return verification information. | ||
| 135 | |||
| 136 | =item 'R' | ||
| 137 | |||
| 138 | The system is unavailable, so retry. | ||
| 139 | |||
| 140 | =item 'S' | ||
| 141 | |||
| 142 | The verification service is not available. | ||
| 143 | |||
| 144 | =item 'U' | ||
| 145 | |||
| 146 | Verification information is not available. | ||
| 147 | |||
| 148 | =item 'Y' | ||
| 149 | |||
| 150 | Yes, the data matches. | ||
| 151 | |||
| 152 | =item '2' | ||
| 153 | |||
| 154 | The processor returned an unrecognized value. | ||
| 155 | |||
| 156 | =back | ||
| 157 | |||
| 158 | =head1 ATTRIBUTES | ||
| 159 | |||
| 160 | =head2 ev_email | ||
| 161 | |||
| 162 | =head2 ev_phone_number | ||
| 163 | |||
| 164 | =head2 ev_postal_code | ||
| 165 | |||
| 166 | =head2 ev_name | ||
| 167 | |||
| 168 | =head2 ev_street | ||
| 169 | |||
| 170 | =head2 ev_email_raw | ||
| 171 | |||
| 172 | =head2 ev_phone_number_raw | ||
| 173 | |||
| 174 | =head2 ev_postal_code_raw | ||
| 175 | |||
| 176 | =head2 ev_name_raw | ||
| 177 | |||
| 178 | =head2 ev_street_raw | ||
| 179 | |||
| 180 | =head1 BUGS | ||
| 181 | |||
| 182 | Please report any bugs or feature requests on the bugtracker website | ||
| 183 | https://github.com/xenoterracide/business-cybersource/issues | ||
| 184 | |||
| 185 | When submitting a bug or request, please include a test-file or a | ||
| 186 | patch to an existing test-file that illustrates the bug or desired | ||
| 187 | feature. | ||
| 188 | |||
| 189 | =head1 AUTHOR | ||
| 190 | |||
| 191 | Caleb Cushing <xenoterracide@gmail.com> | ||
| 192 | |||
| 193 | =head1 COPYRIGHT AND LICENSE | ||
| 194 | |||
| 195 | This software is Copyright (c) 2016 by Caleb Cushing <xenoterracide@gmail.com>. | ||
| 196 | |||
| 197 | This is free software, licensed under: | ||
| 198 | |||
| 199 | The Artistic License 2.0 (GPL Compatible) | ||
| 200 | |||
| 201 | =cut | ||