No release in over 3 years
Low commit activity in last 3 years
Authorize.Net SDK includes standard payments, recurring billing, and customer profiles
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Ruby Sample Code for the Authorize.Net SDK

Travis CI Status

This repository contains working code samples which demonstrate Ruby integration with the Authorize.Net Ruby SDK.

The samples are organized into categories and common usage examples, just like our API Reference Guide. Our API Reference Guide is an interactive reference for the Authorize.Net API. It explains the request and response parameters for each API method and has embedded code windows to allow you to send actual requests right within the API Reference Guide.

Using the Sample Code

The samples are all completely independent and self-contained. You can analyze them to get an understanding of how a particular method works, or you can use the snippets as a starting point for your own project.

You can also run each sample directly from the command line.

Running the Samples From the Command Line

  • Clone this repository:
    $ git clone https://github.com/AuthorizeNet/sample-code-ruby.git
    $ gem install authorizenet
  • Run the individual samples by name. For example:
    $ ruby PaymentTransactions/[CodeSampleName]

e.g.

    $ ruby PaymentTransactions/charge-credit-card.rb