see whole response
[Business-OnlinePayment-LinkPoint.git] / LinkPoint.pm
index bde5543..f652f26 100644 (file)
@@ -1,6 +1,6 @@
 package Business::OnlinePayment::LinkPoint;
 
-# $Id: LinkPoint.pm,v 1.14 2004-06-24 14:55:12 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);
@@ -127,7 +127,7 @@ sub submit {
     }
 
     $self->revmap_fields(
-      hostname     => \( $self->server ),
+      host         => \( $self->server ),
       port         => \( $self->port ),
       #storename    => \( $self->storename ),
       configfile   => \( $self->storename ),
@@ -143,17 +143,17 @@ sub submit {
     my $lperl = new LPPERL;
 
     $self->required_fields(qw/
-      hostname port configfile keyfile amount cardNumber cardExpMonth cardExpYear
+      host port configfile keyfile amount cardNumber cardExpMonth cardExpYear
     /);
 
     my %post_data = $self->get_fields(qw/
-      hostname port configfile keyfile
+      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'});