[interchange-cvs] interchange - heins modified lib/Vend/Payment.pm
interchange-core@icdevgroup.org
interchange-core@icdevgroup.org
Wed Jul 24 14:55:00 2002
User: heins
Date: 2002-07-24 18:54:10 GMT
Modified: lib/Vend Payment.pm
Log:
* Stop nonsensical setting of payment route from order route.
Revision Changes Path
2.6 +3 -4 interchange/lib/Vend/Payment.pm
rev 2.6, prev_rev 2.5
Index: Payment.pm
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/lib/Vend/Payment.pm,v
retrieving revision 2.5
retrieving revision 2.6
diff -u -r2.5 -r2.6
--- Payment.pm 21 Jul 2002 14:08:50 -0000 2.5
+++ Payment.pm 24 Jul 2002 18:54:09 -0000 2.6
@@ -1,6 +1,6 @@
# Vend::Payment - Interchange payment processing routines
#
-# $Id: Payment.pm,v 2.5 2002/07/21 14:08:50 mheins Exp $
+# $Id: Payment.pm,v 2.6 2002/07/24 18:54:09 mheins Exp $
#
# Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
#
@@ -22,7 +22,7 @@
package Vend::Payment;
require Exporter;
=20
-$VERSION =3D substr(q$Revision: 2.5 $, 10);
+$VERSION =3D substr(q$Revision: 2.6 $, 10);
=20
@ISA =3D qw(Exporter);
=20
@@ -269,8 +269,7 @@
### We get the payment base information from a route with the
### same name as $charge_type if it is there
if($Vend::Cfg->{Route}) {
- $pay_route =3D $Vend::Cfg->{Route_repository}{$charge_type}
- || $Vend::Cfg->{Route};
+ $pay_route =3D $Vend::Cfg->{Route_repository}{$charge_type} || {};
}
else {
$pay_route =3D {};