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

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Thu Jan 23 22:35:01 2003


User:      jon
Date:      2003-01-24 03:34:54 GMT
Modified:  lib/Vend Tag: STABLE_4_8-branch Payment.pm
Log:
Merge from trunk:

* Patch to display errors from payment modules in credit card header on
  checkout page.

Revision  Changes    Path
No                   revision



No                   revision



2.2.2.4   +3 -2      interchange/lib/Vend/Payment.pm


rev 2.2.2.4, prev_rev 2.2.2.3
Index: Payment.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Payment.pm,v
retrieving revision 2.2.2.3
retrieving revision 2.2.2.4
diff -u -u -r2.2.2.3 -r2.2.2.4
--- Payment.pm	26 Nov 2002 03:21:10 -0000	2.2.2.3
+++ Payment.pm	24 Jan 2003 03:34:54 -0000	2.2.2.4
@@ -1,6 +1,6 @@
 # Vend::Payment - Interchange payment processing routines
 #
-# $Id: Payment.pm,v 2.2.2.3 2002/11/26 03:21:10 jon Exp $
+# $Id: Payment.pm,v 2.2.2.4 2003/01/24 03:34:54 jon Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. and
 # Interchange Development Group, http://www.icdevgroup.org/
@@ -23,7 +23,7 @@
 package Vend::Payment;
 require Exporter;
 
-$VERSION = substr(q$Revision: 2.2.2.3 $, 10);
+$VERSION = substr(q$Revision: 2.2.2.4 $, 10);
 
 @ISA = qw(Exporter);
 
@@ -442,6 +442,7 @@
 
 	if($result{$svar} !~ /^success/) {
 		$Vend::Session->{payment_error} = $result{$evar};
+		$Vend::Session->{errors}{mv_credit_card_valid} = $result{$evar};
 		$result{'invalid-order-id'} = delete $result{'order-id'}
 			if $result{'order-id'};
 	}