Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
Vend::Payment::CyberCash(3) User Contributed Perl Documentation Vend::Payment::CyberCash(3)

Vend::Payment::CyberCash - Interchange CyberCash Support

    [charge mode=cybercash param1=value1 param2=value2]
    $Tag->charge('cybercash', $opt);

CyberCash connection kit V3.2.0.4

The Vend::Payment::CyberCash module implements the cybercash() routine for use with Interchange. It is compatible on a call level with the other Interchange payment modules -- in theory (and even usually in practice) you could switch from to CyberCash with a few configuration file changes.
To enable this module, place this directive in "interchange.cfg":
    Require module Vend::Payment::CyberCash
This should be in interchange.cfg or a file included from it, but it is actually in by default to maintain backward compatibility with legacy CyberCash installations.
Make sure CreditCardAuto is off (default in Interchange demos).
Make sure the CyberCash Merchant connection kit is installed and working. It requires the following steps:
Obtain the CyberCash modules, prefereably version though and above should work if you add "DebugFile /dev/null" in interchange.cfg. Ask around on the list if you need older versions.
Install the modules, then find the directory where they are and copy them to /path_to_interchange/lib. Include the following files:  MCKencrypt      MCKdecrypt      computeMD5hash
Make sure the program files ( are executable.
Edit CC*.pm to adjust the paths for MCKencrypt, MCKdecrypt, and computeMD5hash.
    $MCKencrypt = "/path_to_interchange/lib/MCKencrypt";
    $MCKdecrypt = "/path_to_interchange/lib/MCKdecrypt";
    $computehash = "/path_to_interchange/lib/computeMD5hash";
Restart Interchange and make sure you get the message:
    CyberCash module found (Version 3.x)
The mode can be named anything, but the "gateway" parameter must be set to "cybercash". To make it the default payment gateway for all credit card transactions in a specific catalog, you can set in "catalog.cfg":
    Variable   MV_PAYMENT_MODE  cybercash
It uses any of the applicable standard settings from Interchange payment. Any time we speak of a setting, it is obtained either first from the tag/call options, then from an Interchange order Route named for the mode, then finally a default global payment variable, For example, the "configfile" parameter would be specified by:
    [charge mode=cybercash configfile="/path/to/the/merchant_conf"]
    Route cybercash configfile /path/to/the/merchant_conf
    Variable MV_PAYMENT_CONFIGFILE    /path/to/the/merchant_conf
The active settings are:
Your CyberCash merchant_conf file, usually created when you installed the MCK. Global parameter is MV_PAYMENT_CONFIGFILE.
The number of decimal digits to be included in the amount. Default is 2.
The international currency code to use. Default is "usd". Must be supported by CyberCash.
Items supported, but never normally used, are:
The CyberCash host to use. Default is set in the merchant_conf file, and is not normally changed by the user. No global parameter is used for fear of conflict with another payment gateway -- must be set in the Route or direct option.
The type of transaction to be run. Valid values are:
    Interchange mode    CyberCash mode
    ----------------    -----------------
    sale                mauthcapture
    auth                mauthonly
IMPORTANT NOTE: In most cases, you cannot control your transaction type, it is set at
This remaps the form variable names to the ones needed by CyberCash. See the payment documentation for details.

Try the instructions above, then enable test mode at A test order should complete. Exam
Then try a sale with the card number "4111 1111 1111 1111" and a valid expiration date. The sale should be denied, and the reason should be in [data session payment_error].
If nothing works:
Make sure you "Require"d the module in interchange.cfg:
    Require module Vend::Payment::CyberCash
Make sure the CyberCash Merchant connection kit is installed and working. Test with CyberCash's supplied routines.
Check the error logs, both catalog and global.
Make sure you set your payment parameters properly. At the minimum, you will need:
    Route  cybercash   configfile   /path/to/merchant_conf
Make sure you have a payment mode set if you are not calling it with "&charge=cybercash":
    Variable  MV_PAYMENT_MODE  cybercash
Everything is case-sensitive, make sure values match.
Try an order, then put this code in a page:
        my $string = $Tag->uneval( { ref => $Session->{payment_result} });
        $string =~ s/{/{\n/;
        $string =~ s/,/,\n/g;
        return $string;
That should show what happened.

There is actually nothing *in* Vend::Payment::CyberCash. It changes packages to Vend::Payment and places things there.

Mike Heins

    Jeff Nappi <>
    Paul Delys <>
    Ray Desjardins <>
    Nelson H. Ferrari <>
2010-03-25 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.