Skip to content

Commit fe8ab09

Browse files
committed
FE6670: Addition of analytical fields in sdk
1 parent 303cdc2 commit fe8ab09

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

BaseClient/util.h

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@
1313
extern "C" {
1414
#endif
1515

16+
#if defined(_WIN64)
17+
static const wchar_t CLIENT_ENVIRONMENT_VALUE[] = L"Win64";
18+
#elif defined(_WIN32)
19+
static const wchar_t CLIENT_ENVIRONMENT_VALUE[] = L"Win32";
20+
#else
21+
#if defined(__linux)
22+
static const wchar_t CLIENT_ENVIRONMENT_VALUE[] = L"Linux";
23+
#else
24+
static const wchar_t CLIENT_ENVIRONMENT_VALUE[] = L"Unknown";
25+
#endif
26+
#endif
27+
28+
1629
#include <stdlib.h>
1730

1831

@@ -50,7 +63,9 @@ const char CYBS_C_USE_AKAMAI[] = "sendToAkamai";
5063

5164

5265
/* clientLibraryVersion */
53-
static const wchar_t CLIENT_LIBRARY_VERSION_VALUE[] = L"6.0.0";
66+
static const wchar_t CLIENT_LIBRARY_VERSION_VALUE[] = L"6.0.1";
67+
static const wchar_t CLIENT_LIBRARY_VALUE[] = L"C SOAP";
68+
static const wchar_t CLIENT_APPLICATION_VALUE[] = L"Simple Order API";
5469

5570
typedef struct {
5671
const void *key;
@@ -102,4 +117,4 @@ void printdata(CybsMap *store);
102117

103118
#endif /* #define __KVS_H__ */
104119

105-
120+

NVPClient/NVPClient.cpp

Lines changed: 11 additions & 1 deletion
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.cpp

Lines changed: 0 additions & 1 deletion
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;

0 commit comments

Comments
 (0)