On This Page
Advanced Configuration Information
Using Alternate Server Properties
Use the serverURL and namespaceURI properties if
Cybersource
changes the
convention used to specify the server URL and namespace URI, but has not updated the client
yet. With these properties, you will be able to configure your existing client to use the
new server and namespace conventions required by the Cybersource
server.For example, these are the server URLs and namespace URI for accessing the
Cybersource
services with the Simple Order API 1.18:- Test server URLs:Internet endpoint:https://ics2wstest.ic3.com/commerce/1.x/transactionProcessorAkamai endpoint:https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor
- Production server URLs:Internet endpoint:https://ics2ws.ic3.com/commerce/1.x/transactionProcessorAkamai endpoint:https://ics2wsa.ic3.com/commerce/1.x/transactionProcessorIndia endpoint:https://ics2ws.in.ic3.com/commerce/1.x/transactionProcessor
- Namespace URI:urn:schemas-cybersource-com:transaction-data-1.18.
If you view the above URLs in a web browser, a list of the supported API versions and the associated schema files are displayed.
Configuring for Multiple Merchant IDs
If you have multiple merchant IDs, or if you are a reseller handling multiple merchants, you can set different properties settings for different merchant IDs in the Properties object that you pass to runTransaction(). When using the samples provided in the client package, set the properties in
cybs.properties
file.To specify the settings for a specific merchant, all the properties except merchantID can be prefixed with "
<merchantID>.
". The merchant ID is case sensitive. To enable logging only for merchant123
, set the enableLog property to true
for all requests that have merchant123
as the merchant ID:merchant123.enableLog=true enableLog=false
The client disables logging for all other merchants.
Using System Properties
Although the properties in the Properties object passed to runTransaction() normally take precedence over the System properties, you can specify the settings that the client uses with the System properties. A system property will be used only if the Properties object passed to runTransaction() does not already include that property.
To use System properties for
merchant123
, prefix each system property with cybs.
, for example:java -Dcybs.enableLog=false -Dcybs.merchant123.enableLog=true myApplication
Resolving Connection Issues
If you are using a Oracle Java SDK version earlier than 1.4.0 or an IBM Java SDK, you may exceptions when attempting to connect to external sites with HTTPS.
If you encounter the following exception message when testing the client, follow the procedure for your SDK:
java.net.MalformedURLException: unknown protocol: https
Oracle Java SDK Version Earlier than 1.4.0
This procedure is only a guideline. For the latest information, consult the Oracle JSSE documentation.
- Download the Oracle JSSE from http://java.sun.com/products/jsse/.
- Extract the following files from the Oracle JSSE package:
ADDITIONAL INFORMATION
jcert.jarjnet.jarjsse.jar - Copy thejarfiles into your Java installation'sjre/lib/extdirectory.
- Openjre/lib/security/java.securityand locate the following line with the highest value forN:security.provider.N=<some provider class name>
- Add the following line whereNNis equal toN+ 1:security.provider.NN=com.sun.net.ssl.internal.ssl.Provider
- Save and close the file.
IBM Java SDK
This procedure is only a guideline. For the latest information, consult the IBMJSSE
documentation.
- Download the IBMJSSE from IBM’s web site or obtain it from your IBM development kit CDs.
- Extract theibmjsse.jarfile.
- Obtain theibmpkcs.jarfile. The file should be included in the IBM development kit.
- Copy bothjarfiles into your Java installation'sjre/lib/extdirectory.
- Openjre/lib/security/java.securityand locate the following line with the highest value forN:security.provider.N=<some provider class name>
- Add the following line whereNNis equal toN+ 1:security.provider.NN=com.ibm.jsse.JSSEProvider
- Save and close the file.
Importing the Root CA Certificate
If you encounter this exception message when testing the client, you must perform the
following steps to import the root CA certificate into
cacerts
:
javax.net.ssl.SSLException untrusted server cert chain
- At a command prompt, go to the main client directory where theentrust_ssl_ca.cerfile is located.
- Type the following text without line breaks:
ADDITIONAL INFORMATION
keytool -import -alias entrust_ssl_ca -keystore <JAVA_HOME>/jre/lib/security/cacerts -file entrust_ssl_ca.cerwhere <JAVA_HOME> is the path to your Java installation.Note that keytool is a utility included in the Java SDK. - When prompted, enter the keystore password. The default password is usuallychangeit. You have successfully imported the certificate.