[ic] Changing Global Catalog Variables Dynamically

Shawn Mathews interchange-users@icdevgroup.org
Mon Dec 23 15:35:01 2002


Ok,

I looked at everything in interchange and decided it would be pretty stupid
to mess around with the MV_PAYMENT_MODE variable and decided to write a
usertag to determine with payment method should be passed to the charge tag
in log_transaction.

I set MV_PAYMENT_MODE to dummy so log_transaction would catch it.

Shawn Mathews

-----Original Message-----
From: interchange-users-admin@icdevgroup.org
[mailto:interchange-users-admin@icdevgroup.org]On Behalf Of Shawn
Mathews
Sent: Monday, December 23, 2002 2:58 PM
To: Interchange Users
Subject: [ic] Changing Global Catalog Variables Dynamically


I have a client who wants to send transactions thru different gateways
depending on the type of card used and the credit limit associated with that
gateway.

I think to do this I need to change the value of MV_PAYMENT_MODE when the
transaction is being processed.

I figure to do it I would need to use:  $Global::Variable->{$key} or
something of the sort in a [perl][/perl] block.

Now, I may have hit the crack pipe once or twice this morning, so I want to
ask a few simple questions before I do something like this.....

#1) Am I crazy? Is this a really,really,really, dumb thing to do?
#2) Would it affect other transactions that were being processed?
#3) Would it be a better idea to put checks in Vend::Payment or write a
wrapper Payment module that sent the info off to the appropriate place?


Thanks,
_________________________________________________________________
Shawn Mathews
ICQ#: 157740601
_________________________________________________________________


_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users