From: ivan Date: Thu, 24 Jun 2004 15:31:58 +0000 (+0000) Subject: fix order_number and also return avs code X-Git-Tag: BUSINESS_ONLINEPAYMENT_LINKPOINT_0_04~2 X-Git-Url: http://git.freeside.biz/gitweb/?p=Business-OnlinePayment-LinkPoint.git;a=commitdiff_plain;h=adc846c4090e948135e1c07b13233a2374e435bc fix order_number and also return avs code --- diff --git a/LinkPoint.pm b/LinkPoint.pm index ed8a650..ac7881b 100644 --- a/LinkPoint.pm +++ b/LinkPoint.pm @@ -1,6 +1,6 @@ package Business::OnlinePayment::LinkPoint; -# $Id: LinkPoint.pm,v 1.20 2004-06-24 15:23:40 ivan Exp $ +# $Id: LinkPoint.pm,v 1.21 2004-06-24 15:31:58 ivan Exp $ use strict; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); @@ -27,6 +27,8 @@ sub set_defaults { $self->server('secure.linkpt.net'); $self->port('1129'); + $self->build_subs(qw(order_number avs_code)); + } sub map_fields { @@ -175,6 +177,7 @@ sub submit { $self->result_code($response{'r_code'}); $self->authorization($response{'r_ref'}); $self->order_number($response{'r_ordernum'}); + $self->avs_code($response{'r_avs'}; } else { $self->is_success(0); $self->result_code('');