Coder Social home page Coder Social logo

maxcodes / cybersource-rest-client-ruby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cybersource/cybersource-rest-client-ruby

0.0 0.0 0.0 17.86 MB

Ruby client library for the CyberSource REST API

License: Other

Ruby 98.87% Shell 0.04% HTML 0.91% Batchfile 0.18%

cybersource-rest-client-ruby's Introduction

Ruby Client SDK for the CyberSource REST APIs

The CyberSource Ruby client provides convenient access to the CyberSource REST API from your Ruby application.

Version

Requirements

Dependencies

  • concurrent-ruby 1.1.3
  • i18n 1.1.1
  • minitest 5.11.3
  • thread_safe 0.3.6
  • tzinfo 1.2.5
  • activesupport 5.2.1
  • interface 1.0.4
  • json 2.1.0
  • jwt 2.1.0
  • ffi 1.9.25
  • ethon 0.11.0
  • typhoeus 1.3.1

Installation

Bundler

Be sure to always use HTTPS rubygems source in your gemfile and include the cybersource_rest_client.

source 'https://rubygems.org' do
  gem 'cybersource_rest_client'
end

Registration & Configuration

Use of this SDK and the CyberSource APIs requires having an account on our system. You can find details of getting a test account and creating your keys here

Once you have your keys, simply load them into the appropriate variables in your code, as per the below sample code dealing with the authentication part of the API request.

Remember this SDK is for use in server-side Ruby applications that access the CyberSource REST API and credentials should always be securely stored and accessed appropriately.

SDK Usage Examples and Sample Code

To get started using this SDK, it's highly recommended to download our sample code repository:

In that respository, we have comprehensive sample code for all common uses of our API:

Additionally, you can find details and examples of how our API is structured in our API Reference Guide:

The API Reference Guide provides examples of what information is needed for a particular request and how that information would be formatted. Using those examples, you can easily determine what methods would be necessary to include that information in a request using this SDK.

Switching between the sandbox environment and the production environment

Cybersource maintains a complete sandbox environment for testing and development purposes. This sandbox environment is an exact duplicate of our production environment with the transaction authorization and settlement process simulated. By default, this SDK is configured to communicate with the sandbox environment. To switch to the production environment, set the runEnvironment property in the SDK Configuration. See our sample at https://github.com/CyberSource/cybersource-rest-samples-ruby/blob/master/data/Configuration.rb

# For TESTING use
runEnvironment='cybersource.environment.sandbox'
# For PRODUCTION use
# runEnvironment='cybersource.environment.production'

API credentials are different for each environment, so be sure to switch to the appropriate credentials when switching environments.

License

This repository is distributed under a proprietary license. See the provided LICENSE.txt file.

cybersource-rest-client-ruby's People

Contributors

anjana93 avatar brianmc avatar chsriniv9 avatar gnongsie avatar kikmak42 avatar maxcodes avatar namanbansal avatar snavinch 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.