see whole response
[Business-OnlinePayment-LinkPoint.git] / LinkPoint.pm
index 0621ea0..f652f26 100644 (file)
@@ -1,6 +1,6 @@
 package Business::OnlinePayment::LinkPoint;
 
-# $Id: LinkPoint.pm,v 1.15 2004-06-24 14:56:27 ivan Exp $
+# $Id: LinkPoint.pm,v 1.18 2004-06-24 15:17:49 ivan Exp $
 
 use strict;
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
@@ -150,10 +150,10 @@ sub submit {
       host port configfile keyfile
       result
       chargetotal cardNumber cardExpMonth cardExpYear
-      name email phone address city state zip country
+      name email phone addrnum city state zip country
     /);
 
-    $post_data{'order_type'} = $content{action};
+    $post_data{'ordertype'} = $content{action};
 
     if ( $content{'cvv2'} ) { 
       $post_data{cvmindicator} = 'provided';
@@ -169,6 +169,8 @@ sub submit {
     #}
     %response = $lperl->curl_process(\%post_data);
 
+    warn "$_ => $response{$_}\n" for keys %response;
+
     if ( $response{'r_approved'} eq 'APPROVED' ) {
       $self->is_success(1);
       $self->result_code($response{'r_code'});