Coder Social home page Coder Social logo

ruby-library's Introduction

Ruby API Library for Fat Zebra

Build Status

Release 3.2.6 for API version 1.0

A Ruby client for the Fat Zebra Online Payment Gateway

Dependencies

  • Ruby (tested on 2.3, 2.4, 2.5, 2.6)
  • Rest Client

Installing

gem install fat_zebra

Or in a Rails App (or similar, with Bundler), in your Gemfile:

gem "fat_zebra"

Usage

require 'fat_zebra'

# Configuration only needs to be done once, usually in your rails initializers
FatZebra.configure do |config|
  config.username = 'TEST'
  config.token    = 'TEST'
end

purchase = FatZebra::Purchase.create(
  amount:      10000,
  card_holder: 'Bill Simpson',
  card_number: '5123456789012346',
  card_expiry: '05/2023',
  cvv:         '123',
  reference:   'ORDER-23',
  customer_ip: '203.99.87.4'
)

if purchase.successful?
  puts "Transaction ID: #{purchase.id}"
else
  abort "Error in transaction: #{purchase.errors}"
end

Documentation

Full API reference can be found at http://docs.fatzebra.com

Support

If you have any issue with the Fat Zebra Ruby Client please contact us at [email protected] and we will be more then happy to help out. Alternatively you may raise an issue in github.

Pull Requests

If you would like to contribute to the plugin please fork the project, make your changes within a feature branch and then submit a pull request. All pull requests will be reviewed as soon as possible and integrated into the main branch if deemed suitable.

ruby-library's People

Contributors

amasses avatar mattoc avatar michaeljd avatar pamit avatar pat avatar pmachapman avatar radar avatar warp 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.