Renamed avs_response to avs_code
authorfbriere <fbriere>
Sat, 19 Aug 2006 18:19:32 +0000 (18:19 +0000)
committerfbriere <fbriere>
Sat, 19 Aug 2006 18:19:32 +0000 (18:19 +0000)
InternetSecure.pm
t/30parse.t

index 65847f1..9e9c701 100755 (executable)
@@ -43,7 +43,7 @@ sub set_defaults {
                                date
                                card_type       cardholder
                                total_amount    tax_amounts
                                date
                                card_type       cardholder
                                total_amount    tax_amounts
-                               avs_response    cvv2_response
+                               avs_code        cvv2_response
                        ));
        
        # Just in case someone tries to call tax_amounts() *before* submit()
                        ));
        
        # Just in case someone tries to call tax_amounts() *before* submit()
@@ -275,7 +275,7 @@ sub parse_response {
                        result_code     => 'Page',
                        error_message   => 'Verbiage',
                        authorization   => 'ApprovalCode',
                        result_code     => 'Page',
                        error_message   => 'Verbiage',
                        authorization   => 'ApprovalCode',
-                       avs_response    => 'AVSResponseCode',
+                       avs_code        => 'AVSResponseCode',
                        cvv2_response   => 'CVV2ResponseCode',
 
                        receipt_number  => 'ReceiptNumber',
                        cvv2_response   => 'CVV2ResponseCode',
 
                        receipt_number  => 'ReceiptNumber',
@@ -536,7 +536,7 @@ B<guid>() is provided as an alias to this method.
 
 Authorization code for this transaction.
 
 
 Authorization code for this transaction.
 
-=item avs_response() / cvv2_response()
+=item avs_code() / cvv2_response()
 
 Results of the AVS and CVV2 checks.  See the InternetSecure documentation for
 the list of possible values.
 
 Results of the AVS and CVV2 checks.  See the InternetSecure documentation for
 the list of possible values.
index 6198468..a6ed028 100755 (executable)
@@ -5,7 +5,7 @@ use constant FIELDS => qw(
                        receipt_number sales_number
                        date
                        card_type
                        receipt_number sales_number
                        date
                        card_type
-                       avs_response cvv2_response
+                       avs_code cvv2_response
                        total_amount tax_amounts
                        );
 
                        total_amount tax_amounts
                        );
 
@@ -19,7 +19,7 @@ use constant RESULTS => (
                                        sales_number    => 0,
                                        date            => '2003/12/17 09:59:58',
                                        card_type       => undef,
                                        sales_number    => 0,
                                        date            => '2003/12/17 09:59:58',
                                        card_type       => undef,
-                                       avs_response    => undef,
+                                       avs_code        => undef,
                                        cvv2_response   => undef,
                                        total_amount    => 3.88,
                                        tax_amounts     => { GST => 0.25 },
                                        cvv2_response   => undef,
                                        total_amount    => 3.88,
                                        tax_amounts     => { GST => 0.25 },
@@ -35,7 +35,7 @@ use constant RESULTS => (
                                        sales_number    => 729,
                                        date            => '2003/12/17 10:31:58',
                                        card_type       => 'Visa',
                                        sales_number    => 729,
                                        date            => '2003/12/17 10:31:58',
                                        card_type       => 'Visa',
-                                       avs_response    => undef,
+                                       avs_code        => undef,
                                        cvv2_response   => undef,
                                        total_amount    => 3.88,
                                        tax_amounts     => { GST => 0.25,
                                        cvv2_response   => undef,
                                        total_amount    => 3.88,
                                        tax_amounts     => { GST => 0.25,