projects
/
Business-OnlinePayment-InternetSecure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e97a2d3
)
Renamed avs_response to avs_code
author
fbriere
<fbriere>
Sat, 19 Aug 2006 18:19:32 +0000
(18:19 +0000)
committer
fbriere
<fbriere>
Sat, 19 Aug 2006 18:19:32 +0000
(18:19 +0000)
InternetSecure.pm
patch
|
blob
|
history
t/30parse.t
patch
|
blob
|
history
diff --git
a/InternetSecure.pm
b/InternetSecure.pm
index
65847f1
..
9e9c701
100755
(executable)
--- a/
InternetSecure.pm
+++ b/
InternetSecure.pm
@@
-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_
respons
e() / cvv2_response()
+=item avs_
cod
e() / 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.
diff --git
a/t/30parse.t
b/t/30parse.t
index
6198468
..
a6ed028
100755
(executable)
--- a/
t/30parse.t
+++ b/
t/30parse.t
@@
-5,7
+5,7
@@
use constant FIELDS => qw(
receipt_number sales_number
date
card_type
receipt_number sales_number
date
card_type
- avs_
respons
e cvv2_response
+ avs_
cod
e 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,