Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Minivend4 and Cybercash Problem - AGAIN - Please Help - (New Info)



******    message to minivend-users from OTR Comm <otrcomm@wildapache.net>     ******

******    message to minivend-users from OTR Comm
<otrcomm@wildapache.net>     ******

Hello,

Earlier I posted some messages about problems with Cybercash and
Minivend4.

I still have the problems, so I generated the following code to submit a
transaction directly to Cybercash and it works:

#!/usr/bin/perl -w

require 5.005;

##
# NOTE: I replace MYCCID below with my actual Cybercash CCID for this
test account.
# This is the same one that I am using with my Minivend4 configuration.
##

BEGIN {
     push(@INC,
'/usr/local/src/cybercash/mck-3.2.0.5-i586-pc-linux-gnulibc2.1/perl-api');
     push(@INC,
'/usr/local/apache/share/htdocs/wildapachemall.com/cgi-bin/MYCCID/');
}

#
# Require some libraries
#

use CCMckLib3_2 qw($MCKversion %Config InitConfig CCError CCDebug
CCDebug2 );
use CCMckDirectLib3_2 qw(SendCC2_1Server);

use CCMckErrno3_2 qw(MCKGetErrorMessage $E_NoErr);

use CCMerchantTest qw($ConfigFile);
use CCMerchantCustom qw(GenerateOrderId);

($status) = &InitConfig($ConfigFile);

if ($status != $E_NoErr) {
 
    # %Config is a failure struct
 
    foreach (keys(%Config)) {
       print " $_ ==> $Config{$_}\n";
    }
        $errmsg = &MCKGetErrorMessage($status);
    die("$0: $errmsg\n");
}

&CCDebug("Entering $0\n");


# Generate the test order

$orderID = &GenerateOrderId();

$amount = 'usd 34.95';
$pan = '4111111111111111';
$name = 'Test User';
$addr = 'P.O. Box 555';
$city = 'Clarkdale';
$state = 'AZ';
$zip = '86324';
$country = 'USA';
$exp = '03/01';

# Need to test with both 'mauthonly' and 'mauthcapture'.
# Which one selected depends on the arrangements made with CC processor.
# E.G., First Data Corp, NOVA, etc.

#%result = &SendCC2_1Server('mauthcapture',
%result = &SendCC2_1Server('mauthonly',
               'order-id', $orderID,
                       'amount', $amount,
                       'card-number', $pan,
                       'card-name', $name,
                       'card-address', $addr,
                       'card-city', $city,
                       'card-state', $state,
                       'card-zip', $zip,
                       'card-country', $country,
                       'card-exp', $exp);

#
# Just dump results to stdout for testing.
# Will want to grab this data for each transaction and store
# in MySQL.
#
foreach (keys(%result)) {
   print " $_ ==> $result{$_}\n";
}

Like I said, this works fine, but the Minivend4 code comes back with the
previously mentioned RED error and causes the transaction to have a
'failure-hard' status at Cybercash.

I wanted to provide this code in case one of the Minivend4 code
writers/developers reads this.

Thanks,
Murrah Boswell
otrcomm@wildapache.net
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead,
send
email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: