Skip to content

Commit a9f01d5

Browse files
author
adkumar3
committed
Added Sample Files
1 parent 79ee749 commit a9f01d5

29 files changed

Lines changed: 2204 additions & 479 deletions

java/src/main/java/com/cybersource/ws/client/SecurityUtil.java~HEAD

Lines changed: 365 additions & 0 deletions
Large diffs are not rendered by default.

samples/nvp/auth.properties

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
ccAuthService_run=true
2+
merchantReferenceCode=MRC-14344
3+
billTo_firstName=John
4+
billTo_lastName=Doe
5+
billTo_street1=1295 Charleston Road
6+
billTo_city=Mountain View
7+
billTo_state=CA
8+
billTo_postalCode=94043
9+
billTo_country=US
10+
billTo_email=nobody@cybersource.com
11+
billTo_ipAddress=10.7.7.7
12+
billTo_phoneNumber=650-965-6000
13+
shipTo_firstName=Jane
14+
shipTo_lastName=Doe
15+
shipTo_street1=100 Elm Street
16+
shipTo_city=San Mateo
17+
shipTo_state=CA
18+
shipTo_postalCode=94401
19+
shipTo_country=US
20+
card_accountNumber=4111111111111111
21+
card_expirationMonth=12
22+
card_expirationYear=2020
23+
purchaseTotals_currency=USD
24+
item_0_unitPrice=12.34
25+
item_1_unitPrice=56.78
26+
27+
28+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
merchantReferenceCode= MRC-14344
2+
purchaseTotals_currency= USD
3+
item_0_unitPrice= 69.12
4+
ccAuthReversalService_run= true
5+
ccAuthReversalService_authRequestID= requestID

samples/nvp/capture.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ccCaptureService_run=true
2+
merchantReferenceCode=MRC-14344
3+
ccCaptureService_authRequestID=authID
4+
purchaseTotals_currency=USD
5+
item_0_unitPrice=69.12

samples/nvp/compileSample.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set LOCAL_CP=
44
rem ----------------------------------------------------------------------------
5-
rem Replace this with cybersource-sdk-java-6.2.4.jar when using Java SDK 1.6 or later.
5+
rem Replace this with cybersource-sdk-java-6.2.3.jar when using Java SDK 1.6 or later.
66
rem If using this scripts outside zip package then give maven clean install.
77
rem This will generate all required dependencies under target/dependencies.These dependencies are used in CLASSPATH.
88
rem ----------------------------------------------------------------------------
@@ -21,7 +21,7 @@ if "%JAVA_HOME%" == "" (
2121
set JAVAC_CMD="%JAVA_HOME%"\bin\javac
2222
)
2323

24-
%JAVAC_CMD% -d classes -classpath "%LOCAL_CP%" src/main/java/com/cybersource/sample/AuthCaptureSample.java
24+
%JAVAC_CMD% -d classes -classpath "%LOCAL_CP%" src/main/java/com/cybersource/sample/RunSample.java
2525
goto eof
2626

2727
:error

samples/nvp/compileSample.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
LOCAL_CP=
44
# -----------------------------------------------------------------------------
5-
# Replace this with cybersource-sdk-java-6.2.4.jar when using Java SDK 1.6 or later.
5+
# Replace this with cybersource-sdk-java-6.2.3.jar when using Java SDK 1.6 or later.
66
# If using this scripts outside zip package then give maven clean install.
77
# This will generate all required dependencies under target/dependencies.These dependencies are used in CLASSPATH.
88
# -----------------------------------------------------------------------------
@@ -33,5 +33,5 @@ else
3333
JAVAC_CMD=javac
3434
fi
3535

36-
$JAVAC_CMD -d ./classes -classpath "$LOCAL_CP" src/main/java/com/cybersource/sample/AuthCaptureSample.java
36+
$JAVAC_CMD -d ./classes -classpath "$LOCAL_CP" src/main/java/com/cybersource/sample/RunSample.java
3737

samples/nvp/credit.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
merchantReferenceCode=MRC-14344
2+
purchaseTotals_currency=USD
3+
item_0_unitPrice=12.34
4+
ccCreditService_run=true
5+
ccCreditService_captureRequestID= requestID
6+
merchantID=cybs_test_ashish

samples/nvp/cybs.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ timeout=1000
3333
# logging should normally be disabled in production as it would slow down the
3434
# processing. Enable it only when troubleshooting an issue.
3535
enableLog=true
36-
logDirectory=../../logs
36+
logDirectory=./logs
3737
logMaximumSize=10
3838

3939
# Optional proxy server settings
4040
#proxyHost=<-- Set the Proxy Host-->
4141
#proxyPort=< -- Set the Proxy port-->
4242
#proxyUser=< -- Proxy user name-->
43-
#proxyPassword=< -- Proxy passsword-->
43+
#proxyPassword=< -- Proxy passsword-->

samples/nvp/emv_auth.properties

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
merchantReferenceCode= your_merchant_reference_code
2+
billTo_firstName= John
3+
billTo_lastName= Doe
4+
billTo_street1= 1295 Charleston Road
5+
billTo_city= Mountain View
6+
billTo_state= CA
7+
billTo_postalCode= 94043
8+
billTo_country= US
9+
billTo_email= nobody@cybersource.com
10+
billTo_ipAddress= 10.7.7.7
11+
billTo_phoneNumber= 650-965-6000
12+
shipTo_firstName= Jane
13+
shipTo_lastName= Doe
14+
shipTo_street1= 100 Elm Street
15+
shipTo_state= CA
16+
shipTo_city= San Mateo
17+
shipTo_postalCode= 94401
18+
shipTo_country= US
19+
card_accountNumber= 4111111111111111
20+
card_expirationMonth= 12
21+
card_expirationYear= 2020
22+
pos_entryMode= contact
23+
pos_cardPresent= Y
24+
pos_terminalCapability= 1
25+
pos_trackData= %B4111111111111111^SMITH/BETTY^16121200123456789012**XXX******?*;4111111111111111=16121200XXXX00000000?*
26+
pos_catLevel= 1
27+
emvRequest_combinedTags= 9F3303204000950500000000009F3704518823719F100706011103A000009F26081E1756ED0E2134E29F36020015820200009C01009F1A0208409A030006219F02060000000020005F2A0208409F0306000000000000
28+
emvRequest_fallback= 123
29+
purchaseTotals_currency= USD
30+
item_0_unitPrice= 12.34
31+
ccAuthService_commerceIndicator= retail
32+
ccAuthService_mobileRemotePaymentType= 1
33+
ccAuthService_run= true

0 commit comments

Comments
 (0)