diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-02-16 06:21:30 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-02-16 06:21:30 -0800 |
commit | 69c48300a72928b492968cfa2b86d1d264ccd8cf (patch) | |
tree | de85e3a30246a39210d1e29ffac6c7d04aab2ca4 /lib/Business/OnlinePayment/vSecureProcessing.pm | |
parent | 6773138ba92001464a21fb84f110281f3c4cd34a (diff) |
Normalize return fields with non-standard names (avs_code and cvv2_response)
Diffstat (limited to 'lib/Business/OnlinePayment/vSecureProcessing.pm')
-rw-r--r-- | lib/Business/OnlinePayment/vSecureProcessing.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Business/OnlinePayment/vSecureProcessing.pm b/lib/Business/OnlinePayment/vSecureProcessing.pm index 75675f3..fddf9ec 100644 --- a/lib/Business/OnlinePayment/vSecureProcessing.pm +++ b/lib/Business/OnlinePayment/vSecureProcessing.pm @@ -11,7 +11,7 @@ use Business::OnlinePayment::HTTPS; @ISA = qw(Business::OnlinePayment::HTTPS); $DEBUG = 0; -$VERSION = '0.03'; +$VERSION = '0.04'; # mapping out all possible endpoints # but this version will only be building out "charge", "void", & "credit" @@ -97,7 +97,7 @@ sub set_defaults { $self->build_subs(qw/ platform tid appid - action reference_number cvv_response avs_response response_code + action reference_number cvv2_response avs_code response_code risk_score txn_amount txn_date /); @@ -346,8 +346,8 @@ sub parse_response { warn "Response:\n".Dumper($response)."\n" if $DEBUG > 2; $self->result_code($response->{Status}); # 0 /1 $self->response_code($response->{ResponseCode}); # see documentation for translation - $self->avs_response($response->{AvsResponse}); # Y / N - $self->cvv_response($response->{CvvResponse}); # P / F + $self->avs_code($response->{AvsResponse}); # Y / N + $self->cvv2_response($response->{CvvResponse}); # P / F $self->txn_date($response->{TransactionDate}); # MMDDhhmmss $self->txn_amount($response->{TransactionAmount} / 100); # 00000003500 / 100 $self->reference_number($response->{ReferenceNumber}); |