Name

MV_PAYMENT_MODE — payment gateway mode name

SYNOPSIS

{ mode }

DESCRIPTION

Payment gateway mode name for one of the available payment modules.

VARIABLE TYPE

Catalog variable

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

MV_PAYMENT_MODE is available in Interchange versions:

5.0.1-5.7.0 (cvs-head)

SOURCE

Interchange 5.7.0:

Source: code/UI_Tag/update_order_status.tag
Line 110 (context shows lines 100-114)

elsif($oid =~ /\*$/) {
  Vend::Tags->error( {
          name => 'settle_transaction',
          set => "Order ID $oid already settled!",
        });
  return undef;
}
else {
#::logDebug("auth-code: $trec->{auth_code} oid=$oid");
  my $settled  = Vend::Tags->charge( {
            route => $::Variable->{MV_PAYMENT_MODE},
            order_id => $oid,
            amount => $amount,
            auth_code => $trec->{auth_code},
            transaction => 'settle_prior',

Source: code/UI_Tag/update_order_status.tag
Line 162 (context shows lines 152-166)

elsif($oid =~ /-$/) {
  Vend::Tags->error( {
          name => 'void_transaction',
          set => "Order ID $oid already voided!",
        });
  return undef;
}
else {
#::logDebug("auth-code: $trec->{auth_code} oid=$oid");
  my $voided  = Vend::Tags->charge( {
            route => $::Variable->{MV_PAYMENT_MODE},
            order_id => $oid,
            amount => $amount,
            auth_code => $trec->{auth_code},
            transaction => 'void',

Source: lib/Vend/Payment/PRI.pm (rev. 1.6 from Sat Aug 18 14:18:37 2007)
Line 90 (context shows lines 80-94)

or

Route PRI id YourPRIID

or with only PRI as a payment provider

Variable MV_PAYMENT_ID      YourPRIID

A fully valid catalog.cfg entry to work with the standard demo would be:

Variable MV_PAYMENT_MODE    "__MV_PAYMENT_MODE__"
Route  PRI      id          "__PRI_ID__"
Route  PRI      regkey      "__PRI_REGKEY__"
Route  PRI      test_id     "__PRI_TEST_ID__"
Route  PRI      test_regkey "__PRI_TEST_REGKEY__"

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!