FILTER BY TAG

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/transactionProcessor
    Akamai endpoint:
    https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor
  • Production server URLs:
    Internet endpoint:
    https://ics2ws.ic3.com/commerce/1.x/transactionProcessor
    Akamai endpoint:
    https://ics2wsa.ic3.com/commerce/1.x/transactionProcessor
    India 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.
  1. Download the Oracle JSSE from http://java.sun.com/products/jsse/.
  2. Extract the following files from the Oracle JSSE package:

    ADDITIONAL INFORMATION

    jcert.jar
    jnet.jar
    jsse.jar
  3. Copy the
    jar
    files into your Java installation's
    jre/lib/ext
    directory.
  4. Open
    jre/lib/security/java.security
    and locate the following line with the highest value for
    N
    :
    security.provider.N=<some provider class name>
  5. Add the following line where
    NN
    is equal to
    N
    + 1:
    security.provider.NN=com.sun.net.ssl.internal.ssl.Provider
  6. Save and close the file.

IBM Java SDK

This procedure is only a guideline. For the latest information, consult the IBMJSSE documentation.
  1. Download the IBMJSSE from IBM’s web site or obtain it from your IBM development kit CDs.
  2. Extract the
    ibmjsse.jar
    file.
  3. Obtain the
    ibmpkcs.jar
    file. The file should be included in the IBM development kit.
  4. Copy both
    jar
    files into your Java installation's
    jre/lib/ext
    directory.
  5. Open
    jre/lib/security/java.security
    and locate the following line with the highest value for
    N
    :
    security.provider.N=<some provider class name>
  6. Add the following line where
    NN
    is equal to
    N
    + 1:
    security.provider.NN=com.ibm.jsse.JSSEProvider
  7. 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
  1. At a command prompt, go to the main client directory where the
    entrust_ssl_ca.cer
    file is located.
  2. 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.cer
    where &lt;JAVA_HOME&gt; is the path to your Java installation.
    Note that keytool is a utility included in the Java SDK.
  3. When prompted, enter the keystore password. The default password is usually
    changeit
    . You have successfully imported the certificate.