Installation
Downloaded the Version 6.2.0 of the Camtech Merchant Server
FTP site: 203.22.215.195
Login: channel
Password: CamtKeyCorp
http://www.camtech.com.au/Support/SoftwareandHardware.htm
Execute installer:
E:\Software\V6\620\Windows\MerchantServerInstaller620b2
And installed it under (for example):
E:\Tools\MerchantServer
Configure the MerchantServer….execute batch file
E:\Tools\MerchantServer\bin\ ConfigurationTool
SMTP mail host:
Outgoing mail server
Administrator Email Address
The email address where the certificate will be sent to.
Generate Keys will generate the keypair
Request Certificate will send the certificate to the Administrator mail address
Import Certificate is used to import the emailed certificate to the MerchantServer, don’t forget to Apply.
Don’t worry about the Gateways tab unless you bump into problems later on.
For testing
Set classpath so it can compile the Example.java file:
I had to do 3 things:
1. Change the path to the “merchantserver.config” file
2. Change the MERCANT_ID and the PASSWORD to the configured ones.
private static final String CONFIG_FILE =
"../merchantserver.config";
……
/*
* The Merchant's details, as configured in the Camtech E-Commerce Configuration
* Tool.
*/
private static final String MERCHANT_ID = "mytestID";
private static final String PASSWORD = "pass123";
Set the classpath, make sure to have the MerchantServer.jar, iaik_jce.jar, activation.jar as well as the Example java folder in the classpath.
Compile Example.java
Voila...my server connected to the Payment Gateway and approved my creditcard :)
/Chris
No comments:
Post a Comment