You must have the CyberCash Merchant Connection Kit 3.2 installed and working correctly on your server.
There are three files located in the directory ShopFactory\Payment System\CyberCash\Copy. These are shopfactorycreditsale.tem, shopfactorydirectpaycredit.cgi and shopfactorydriver.cgi.
shopfactorycreditsale.tem will only need to be modified if you wish to change the look of the page that the customer will enter his credit card details on.
There are a few changes that must be made to shopfactorydirectpaycredit.cgi and shopfactorydriver.cgi
Line 1: "#!/usr/local/bin/perl" - This must be set to the location of perl on your server. Common locations are /usr/local/bin/perl and /usr/bin/perl. If you are using an NT server, you can ignore this line.
Line 23: "$mailusing = 'sendmail';" - The order email will be sent using either the sendmail program, or a direct connection to an SMTP server. If you wish to use sendmail, leave this line as is. If you wish to use an SMTP server, replace 'sendmail' with 'smtp'.
Line 24: "$mailprog = '/bin/sendmail';" - If you are using sendmail for the order emails, this must be set to the path of your sendmail program.
Line 25: "$smtp_addr = '127.0.0.1';" - If you are using SMTP for the order emails, this must be set to the name or IP address of your SMTP server. Note that the SMTP server you specify must allow relaying of mail from your web server. If your web server and SMTP server are on the same computer, you can leave this set to '127.0.0.1'. It is recommended that you use an IP address rather than a name, as this will make the cgi program respond faster. If you are getting "Sendmail error -3" error messages, try setting this to 'mail.yourisp.com' (replacing yourisp.com with the domain name of your ISP)
Line 50: "push(@INC, 'd:\\pub\\www\\mck-shared\\');" - This must be set to the path to your CyberCash mck-shared directory. If you experience "Unable to encrypt" error messages, check this setting.
Line 51: "push(@INC, 'd:\\pub\\www\\mck-cgi\\');" - This must be set to the path to your CyberCash mck-cgi directory.
Line 1: "#!/usr/local/bin/perl" - This must be set to the location of perl on your server. Common locations are /usr/local/bin/perl and /usr/bin/perl. If you are using an NT server, you can ignore this line.
Line 52: "push(@INC, 'd:\\pub\\www\\mck-shared\\');" - This must be set to the path to your CyberCash mck-shared directory. If you experience "Unable to encrypt" error messages, check this setting.
Line 53: "push(@INC, 'd:\\pub\\www\\mck-cgi\\');" - This must be set to the path to your CyberCash mck-cgi directory.
Note that if you are using a UNIX server, the files shopfactorydirectpaycredit.cgi and shopfactorydriver.cgi must be saved in UNIX format, which means you need to edit it with a text editor that allows you to specify the file type. TextPad is one editor that will do this.
After making these changes, the files shopfactorydirectpaycredit.cgi and shopfactorydriver.cgi must be uploaded to the CyberCash mck-cgi directory on your server. The file shopfactorycreditsale.tem must be uploaded to the CyberCash mck-cgi/templates directory on your server.
You need to specify the URL of the shopfactorydriver.cgi program in the file ShopFactory\Payment System\CyberCash\definitions.txt By default, "CYBERCASH_URL=https://www.server.com/mck-cgi/shopfactorydriver.cgi" is used. You must change "www.server.com" to the name of your server, and change "mck-cgi" to the CyberCash mck-cgi directory.