[interchange-cvs] interchange - heins modified lib/Vend/Payment/Skipjack.pm

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Fri Feb 8 22:45:54 2002


User:      heins
Date:      2002-02-09 03:44:24 GMT
Modified:  lib/Vend/Payment Tag: STABLE_4_8-branch Skipjack.pm
Log:
	* Add documentation and submit_url patch supplied by Ron Phipps.

Revision  Changes    Path
No                   revision



No                   revision



2.0.2.2   +15 -6     interchange/lib/Vend/Payment/Skipjack.pm


rev 2.0.2.2, prev_rev 2.0.2.1
Index: Skipjack.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Payment/Skipjack.pm,v
retrieving revision 2.0.2.1
retrieving revision 2.0.2.2
diff -u -r2.0.2.1 -r2.0.2.2
--- Skipjack.pm	24 Jan 2002 05:07:03 -0000	2.0.2.1
+++ Skipjack.pm	9 Feb 2002 03:44:24 -0000	2.0.2.2
@@ -1,6 +1,6 @@
 # Vend::Payment::Skipjack - Interchange Skipjack support
 #
-# $Id: Skipjack.pm,v 2.0.2.1 2002/01/24 05:07:03 jon Exp $
+# $Id: Skipjack.pm,v 2.0.2.2 2002/02/09 03:44:24 mheins Exp $
 #
 # Copyright (C) 1999-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -27,7 +27,7 @@
 
 =head1 Interchange Skipjack Support
 
-Vend::Payment::Skipjack $Revision: 2.0.2.1 $
+Vend::Payment::Skipjack $Revision: 2.0.2.2 $
 
 =head1 SYNOPSIS
 
@@ -97,8 +97,9 @@
 
 =item id
 
-Your account ID number, supplied by Skipjack when you sign up.
-Global parameter is MV_PAYMENT_ID.
+Your account ID number, supplied by Skipjack when you sign up. Use the
+supplied HTML Serial Numbers (Nova or Vital) while testing in development 
+mode. Global parameter is MV_PAYMENT_ID.
 
 =item vendor
 
@@ -163,6 +164,10 @@
 
 	https://www.skipjackic.com/scripts/evolvcc.dll?Authorize
 
+Add the following to catalog.cfg while in development mode:
+
+	Route skipjack submit_url 'https://developer.skipjackic.com/scripts/evolvcc.dll?Authorize'
+
 =back
 
 =head2 Troubleshooting
@@ -189,7 +194,7 @@
 
 Make sure you "Require"d the module in interchange.cfg:
 
-    Require module Vend::Payment::iTransact
+    Require module Vend::Payment::Skipjack
 
 =item *
 
@@ -440,6 +445,8 @@
 		%actual = map_actual();
 	}
 
+#::logDebug("Mapping: " . ::uneval(%actual));
+
 	if($opt->{test} || charge_param('test')) {
 		sj_test_values($opt, \%actual);
 	}
@@ -520,7 +527,9 @@
 		);
 	}
 
-	my $submit_url = $opt->{submit_url}
+#::logDebug("Values to be sent: " . ::uneval(%values));
+
+	$opt->{submit_url} = $opt->{submit_url}
 				   || 'https://www.skipjackic.com/scripts/evolvcc.dll?Authorize';
 
 	my $thing = post_data($opt, \%values);