Git Product home page Git Product logo

litle-sdk-for-ruby's Introduction

Litle Online Ruby SDK

About Litle

Litle & Co. powers the payment processing engines for leading companies that sell directly to consumers through internet retail, direct response marketing (TV, radio and telephone), and online services. Litle & Co. is the leading, independent authority in card-not-present (CNP) commerce, transaction processing and merchant services.

About this SDK

The Litle Ruby SDK is a Ruby implementation of the Litle & Co.. XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle. This SDK utilizes the HTTPS protocol to securely connect to Litle. Using the SDK requires coordination with the Litle team in order to be provided with credentials for accessing our systems.

Our Ruby SDK supports all of the functionality present in Litle XML v8. Please see the online copy of our XSD for Litle XML to get more details on what is supported by the Litle payments engine.

This SDK is implemented to support the Ruby programming language and was created by Litle & Co. It is intended use is for online transactions processing utilizing your account on the Litle payments engine.

See LICENSE file for details on using this software.

Source Code available from : https://github.com/LitleCo/litle-sdk-for-ruby

Please contact Litle & Co. to receive valid merchant credentials in order to run tests successfully or if you require assistance in any way. We are reachable at [email protected]

Setup

  1. Install the LitleOnline Ruby gem from rubygems.org, this will install the latest SDK gem in your Ruby environment. Our gem is available publicly from rubygems.org. Use the command below to install.

sudo gem install LitleOnline

Note: If you get errors, you might have to configure your proxy.

  1. Once the gem is installed run our setup program to generate a configuration file. The configuration file resides in your home directory $HOME/.litle_SDK_config.yml

For more details on setup see our instructions here

3.) Create a ruby file similar to:

require 'LitleOnline'
include LitleOnline

# Visa $10 Sale
litleSaleTxn = {
    'reportGroup'=>'rpt_grp',
    'orderId'=>'1234567',
    'card'=>{
        'type'=>'VI',
        'number' =>'4100000000000001',
        'expDate' =>'1212'},
        'orderSource'=>'ecommerce',
        'amount'=>'1000'
    }

# Peform the transaction on the Litle Platform
response = LitleOnlineRequest.sale(litleSaleTxn)

# display result
puts "Message: "+ response.message
puts "Litle Transaction ID: "+ response.saleResponse.litleTxnId
  1. Next run this file using ruby. You should see the following result provided you have connectivity to the Litle certification environment. You will see an HTTP error if you don't have access to the Litle URL

    Message: Valid Format Litle Transaction ID:

More examples can be found here Ruby Gists

Please contact Lilte & Co. with any further questions. You can reach us at [email protected].

litle-sdk-for-ruby's People

Contributors

arch85 avatar gformich avatar gregdake avatar

Watchers

Pierre-Alexandre Meyer avatar  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.