Skip to content

Commit 711a7cb

Browse files
authored
Merge pull request #16 from CyberSource/future
Future to Master
2 parents e321a1f + fb0f5e4 commit 711a7cb

16 files changed

+41
-9
lines changed

BaseClient/util.h

+23-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@
1313
extern "C" {
1414
#endif
1515

16+
/* Please do not modify these values */
17+
#if defined(_WIN64)
18+
static const wchar_t CLIENT_ENVIRONMENT_VALUE[] = L"Win64";
19+
#elif defined(_WIN32)
20+
static const wchar_t CLIENT_ENVIRONMENT_VALUE[] = L"Win32";
21+
#else
22+
#if defined(__linux)
23+
#if defined(__LP64__) || defined(_LP64)
24+
static const wchar_t CLIENT_ENVIRONMENT_VALUE[] = L"Linux x86_64";
25+
#else
26+
static const wchar_t CLIENT_ENVIRONMENT_VALUE[] = L"Linux x86_32";
27+
#endif
28+
#else
29+
static const wchar_t CLIENT_ENVIRONMENT_VALUE[] = L"Unknown";
30+
#endif
31+
#endif
32+
33+
1634
#include <stdlib.h>
1735

1836

@@ -49,8 +67,10 @@ const char CYBS_SK_ERROR_INFO[] = "_errorInfo";
4967
const char CYBS_C_USE_AKAMAI[] = "sendToAkamai";
5068

5169

52-
/* clientLibraryVersion */
53-
static const wchar_t CLIENT_LIBRARY_VERSION_VALUE[] = L"6.0.0";
70+
/* Please do not modify these values */
71+
static const wchar_t CLIENT_LIBRARY_VERSION_VALUE[] = L"6.0.1";
72+
static const wchar_t CLIENT_LIBRARY_VALUE[] = L"C SOAP";
73+
static const wchar_t CLIENT_APPLICATION_VALUE[] = L"Simple Order API";
5474

5575
typedef struct {
5676
const void *key;
@@ -102,4 +122,4 @@ void printdata(CybsMap *store);
102122

103123
#endif /* #define __KVS_H__ */
104124

105-
125+

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
API_VERSION = 6.0.0
1+
API_VERSION = 6.0.1
22
PROD_NAME = simapi-c
33
ZIP_NAME = $(PROD_NAME)-linux
44
DIST_BASE = builds

NVPClient/.NVPClient.cpp.swp

16 KB
Binary file not shown.

NVPClient/NVPClient.cpp

+11-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ unsigned long pthreads_thread_id(void );
3636
const char akamaiCasserver[] = "https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor";
3737

3838
char DEFAULT_CERT_FILE[] = "ca-bundle";
39-
char SERVER_PUBLIC_KEY_NAME[] = "CyberSource_SJC_US/serialNumber";
39+
char SERVER_PUBLIC_KEY_NAME[] = "CyberSource_SJC_US/serialNumber";
4040
static const wchar_t CLIENT_LIBRARY_VERSION[] = L"clientLibraryVersion";
41+
static const wchar_t CLIENT_LIBRARY[] = L"clientLibrary";
42+
static const wchar_t CLIENT_ENVIRONMENT[] = L"clientEnvironment";
43+
static const wchar_t CLIENT_APPLICATION[] = L"clientApplication";
4144

4245
#define RETURN_ERROR( status, info ) \
4346
{ \
@@ -570,6 +573,13 @@ int runTransaction(INVPTransactionProcessorProxy *proxy, CybsMap *configMap, std
570573

571574
req[CLIENT_LIBRARY_VERSION] = CLIENT_LIBRARY_VERSION_VALUE;
572575

576+
req[CLIENT_LIBRARY] = CLIENT_LIBRARY_VALUE;
577+
578+
req[CLIENT_ENVIRONMENT] = CLIENT_ENVIRONMENT_VALUE;
579+
580+
req[CLIENT_APPLICATION] = CLIENT_APPLICATION_VALUE;
581+
582+
573583
if (cfg.isLogEnabled)
574584
cybs_log_NVP(cfg, req, CYBS_LT_REQUEST);
575585

NVPTest/NVPTest

148 KB
Binary file not shown.

NVPTest/NVPTest.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ void runCapture( CybsMap* cfgMap, std::wstring authRequestID ) {
181181
std::map <std::wstring, std::wstring> requestMap;
182182
std::map <std::wstring, std::wstring> resMap;
183183

184-
requestMap[L"merchantID"] = L"cybs_test_ashish";
185184
requestMap[L"ccCaptureService_run"] = L"true";
186185
requestMap[L"merchantReferenceCode"] = L"your_merchant_reference_code";
187186
requestMap[L"ccCaptureService_authRequestID"] = authRequestID;

NVPTest/NVPTest.o

217 KB
Binary file not shown.

XMLClient/XMLClient.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,9 @@ int cybs_runTransaction(ITransactionProcessorProxy *proxy, ns2__RequestMessage *
560560
// Set client library version in request
561561
//std::string clientLibVersion (CLIENT_LIBRARY_VERSION_VALUE);
562562
ns2__requestMessage->clientLibraryVersion = const_cast< wchar_t* >(CLIENT_LIBRARY_VERSION_VALUE);
563+
ns2__requestMessage->clientLibrary = const_cast< wchar_t* >(CLIENT_LIBRARY_VALUE);
564+
ns2__requestMessage->clientEnvironment = const_cast< wchar_t* >(CLIENT_ENVIRONMENT_VALUE);
565+
ns2__requestMessage->clientApplication = const_cast< wchar_t* >(CLIENT_APPLICATION_VALUE);
563566

564567
/* converting ns2__requestMessage to xml */
565568
std::stringstream ss;

builds/simapi-c-linux32-6.0.0.tar.gz

-12.5 MB
Binary file not shown.

builds/simapi-c-linux64-6.0.0.tar.gz

-10.4 MB
Binary file not shown.

builds/simapi-c-win32-6.0.0.zip

-5.45 MB
Binary file not shown.

builds/simapi-c-win64-6.0.0.zip

-6.93 MB
Binary file not shown.

mkinstall.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ rem This is the packaging batch file for Windows.
55
rem For Linux, run "make" in the client subdirectory.
66
rem *************************************************
77
set platform=%1
8-
set CLIENT_LIBRARY_VERSION_VALUE=6.0.0
8+
set CLIENT_LIBRARY_VERSION_VALUE=6.0.1
99

1010
set BUILD_DIR=builds
1111
if "%platform%"=="win32" (
@@ -126,4 +126,4 @@ jar Mcf simapi-c-win64-%CLIENT_LIBRARY_VERSION_VALUE%.zip simapi-c-win64-%CLIENT
126126
echo Listing simapi-c-win32-%CLIENT_LIBRARY_VERSION_VALUE%...
127127
dir simapi-c-win32-%CLIENT_LIBRARY_VERSION_VALUE%
128128

129-
cd ..
129+
cd ..

resources/auth.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<requestMessage
33
xmlns:ns2="urn:schemas-cybersource-com:transaction-data-1.129">
4-
<ns2:merchantID>merchantid</ns2:merchant>
4+
<ns2:merchantID>cybs_test_ashish1</ns2:merchant>
55
<ns2:merchantReferenceCode>your_merchant_reference_code</ns2:merchantReferenceCode>
66
<ns2:billTo>
77
<ns2:firstName>John</ns2:firstName>

xml/xml

221 KB
Binary file not shown.

xml/xml.o

344 KB
Binary file not shown.

0 commit comments

Comments
 (0)