You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-6Lines changed: 23 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,12 +86,20 @@ You do not need to download and build the source to use the SDK but if you want
86
86
87
87
h. "serverURL" config parameter will take precedence over sendToProduction and sendToAkamai config parameters. By default the "serverURL" configuration is commented out.
88
88
89
+
i. "enablejdkcert" parameter if set to true then it will read the JKS file specified at keysDirectory location. The file should be of the same name as specified in keyFilename.
90
+
91
+
j. cacerts this property will be considered only if "enablejdkcert" is set to true. If it is set to true then it means the JKS file is under cacerts folder of the JDK and
92
+
it will read the JKS file from cacerts.
93
+
94
+
k. Please refer to the accompanying documentation for the other optional properties that you may wish to specify.
95
+
89
96
i. "allowRetry" config parameter will only work for HttpClient. Set allowRetry config parameter to "true" to enable retry mechanism and set merchant specific values for the retry.
90
97
Set integer values for config parameter numberOfRetries & retryInterval. Retry Interval is time delay for next retry in seconds. number of retry parameter should be set between
91
98
1 to 5 any other value will throw an Error Message. Refer to the "Retry Pattern" section below.
92
99
93
100
j. Please refer to the accompanying documentation for the other optional properties that you may wish to specify.
94
101
102
+
95
103
96
104
4. Build this project using Maven.
97
105
@@ -111,38 +119,47 @@ You do not need to download and build the source to use the SDK but if you want
111
119
112
120
We have two ways to test, One is using maven tool and other is to download the zip and use scripts to test.
113
121
122
+
114
123
1.) Unzip the downloaded zip file into a directory of your choice. It will create a directory called
115
124
cybersource-sdk-java-master.
125
+
* If in the Request, a key called "_has_escapes" is present and is set
126
+
* to "1", we will not escape the special characters. Basically, the
127
+
* merchant is saying that they have escaped the characters themselves.
128
+
* This might prove useful for more advanced users of the Basic client.
129
+
130
+
Note: The Script will take Service_name as program argument. Service Name can
131
+
be auth, auth_reversal, capture, sale, emv_auth, credit. If no argument is passed the script
132
+
will terminate the program.
116
133
117
134
a. TESTING THE NAME-VALUE PAIR SAMPLE
118
135
. Go to the cybersource-sdk-java-master/sample/nvp directory.
119
136
. Use compileSample scripts to create classes directory.As it is not included in SDK.
120
137
. Then at a command prompt, type this line:
121
-
Windows runSample.bat
122
-
Unix or Linux runSample.sh
138
+
Windows runSample.bat <service_name>
139
+
Unix or Linux runSample.sh <service_name>
123
140
124
141
If JAVA_HOME is defined, the script uses <JAVA_HOME>/bin/java. Otherwise, it uses
125
142
whatever java is in the path.
126
143
If the client is installed correctly, the requests and replies for a credit card authorization
127
144
and a follow-on capture appear.
128
145
129
-
. If you make any changes to the AuthCaptureSample.java sample, you
146
+
. If you make any changes to the RunSample.java sample, you
130
147
must rebuild the sample before using it. Use the compileSample batch file or
131
148
shell script provided in the sample directory.
132
149
133
150
b. TESTING THE XML SAMPLE
134
151
. Go to the cybersource-sdk-java-master/sample/xml directory.
135
152
. Use compileSample scripts to create classes directory.As it is not included in SDK.
136
153
. At a command prompt, type this line:
137
-
Windows runSample.bat
138
-
Unix or Linux runSample.sh
154
+
Windows runSample.bat <Service_name>
155
+
Unix or Linux runSample.sh <service_name>
139
156
140
157
If JAVA_HOME is defined, the script uses <JAVA_HOME>/bin/java. Otherwise, it uses
141
158
whatever java is in the path.
142
159
If the client is installed correctly, the requests and replies for a credit card authorization
143
160
and a follow-on capture appear.
144
161
145
-
. If you make any changes to the AuthSample.java sample, you
162
+
. If you make any changes to the RunSample.java sample, you
146
163
must rebuild the sample before using it. Use the compileSample batch file or
0 commit comments