Giter Club home page Giter Club logo

cybersource-sdk-cplusplus's Introduction

cybersource-sdk-cplusplus

[Build Status] (https://travis-ci.org/CyberSource/cybersource-sdk-cplusplus)

CyberSource C++ SDK ##Requirements ###Windows

  1. Visual Studio 2012
  2. gsoap 2.8

###Linux

  1. g++ (GCC) 4.8.3
  2. gsoap 2.8

##Prerequisites

  1. Registration A CyberSource Evaluation account is required. Sign up here: http://www.cybersource.com/register Complete your Evaluation account creation by following the instructions in the Registration email

  2. Transaction Security Keys Create security keys in the Enterprise Business Center (ebctest) after you've created your Merchant Admin account. Refer to our Developer's Guide for details http://apps.cybersource.com/library/documentation/dev_guides/security_keys/creating_and_using_security_keys.pdf> under Simple Order API Security Keys to generate .P12 key.

##Installing & building the SDK ###Windows

  1. Download the cybersource-sdk-cpp-master.zip package into a directory of your choice.
  2. Extract and go to the cybersource-sdk-cpp directory.
  3. Open Solution "client.sln" in Visual Studio.
  4. Build/Rebuild the Solution.
  5. To generate binary run mkinstall.bat win32 or mkinstall.bat win64 to build 32 bit or 64 bit respectively.

###Linux

  1. Download the cybersource-sdk-cpp-master.zip package into a directory of your choice.
  2. Extract and go to the cybersource-sdk-cpp directory.
  3. Run "make clean" to clean up the old build/binaries.
  4. Run "make build32" or "make build64" to build 32 or 64 bit respectively.
  5. Navigate to xml sample folder and run compile.sh
  6. Navigate to NVPTest sample folder and run compile.sh
  7. Run "make dist" to generate tar.
  8. Binaries will be generated in /builds/simapi-c-linux-6.0.0.tar.gz.

##Running the Samples

  1. Edit cybs.ini (\samples\cybs.ini)
  • merchantID. MerchantID that will be used for ending the request. If both config as well as request message don’t have the value, then error will be thrown.

  • keysDirectory. Location of the merchant’s security key.

  • keyFilename. Name of the merchant p12 file (e.g merchant.p12). If not specified then by-default it takes .p12 as the value.

  • password. Password of merchant p12 file. If not specified then by-default it uses merchantID as the password.

  • enableLog. If set to true then it will create a log file and log the transaction details.

  • logDirectory. Path of the log file directory.

  • logFilename. Name of the log file.

  • sslCertFile. Path of the SSL ca bundle certificate file (e.g C:\certfile\ca-bundle.crt). If not specified, then it will look into keysDirectory location for a file name ca-bundle.crt.

  • useSignAndEncrypted. This is a boolean flag, if set to true then request will be both signed as well as encrypted.

  • sendToAkamai. This is a boolean flag, if set to true, the request will be routed through Amamai to CyberSource.

  • sendToProduction. This is a boolean flag, if set to true the request will be sent to production endpoint.

  • serverURL. This config parameter will take precedence over sendToProduction and sendToAkamai config parameters. By default, the "serverURL" configuration is commented out.

  1. Running XML request Go to \samples\xml in command prompt and run XMLTest.exe.

  2. Running NVP request Go to \samples\nvp in command prompt and run NVPTest.exe

For running the sample follow "Running the Samples" section.

NOTE:To run NVPTest samples,Please provide a test account number instead of masked account number"xxxxx" in NVPTest.cpp file else transaction fails.

##Generating stub code for different wsdl version:

  1. Go to /stub_generator.
  2. copy the wsdl for particular version from "https://ics2wsa.ic3.com/commerce/1.x/transactionProcessor/" to NVP or XML.
  3. Run stub_generator.bat for windows or stub_generator.sh for linux and follow the instruction.
  4. Rebuild the SDK. Follow Installing & building the SDK

cybersource-sdk-cplusplus's People

Contributors

ashchand avatar vyagarwa avatar shamirwasia avatar amie-gao avatar prverma3 avatar mahendya1002 avatar divyadosibhatla avatar sumiteshrs avatar meetsha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.