This repository contains working code samples which demonstrate ruby integration with the Authorize.Net API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AcceptSuite Issue fix 143:Use standard Ruby syntax for initializing objects. Oct 23, 2018
CustomerProfiles October 18 Release of API Reference Oct 16, 2018
FraudManagement add random invoice number to prevent duplicate transaction errors dur… Oct 18, 2017
MobileInAppTransactions add random invoice number to prevent duplicate transaction errors dur… Oct 18, 2017
PayPalExpressCheckout Update authorization-only-continued.rb Mar 12, 2018
PaymentTransactions lines 19 and 20 split into multiple lines Dec 12, 2018
RecurringBilling Create sub updated - expdate chnaged Aug 27, 2018
TransactionReporting Update get-batch-statistics.rb Feb 23, 2018
VisaCheckout
spec Testing everything except refund Aug 28, 2018
.gitignore changes to get tests to pass again Jul 12, 2017
.travis.yml
Gemfile Update to latest version of SDK Dec 7, 2018
LICENSE Initial commit May 11, 2015
README.md Adding correct installation step Nov 15, 2018
credentials.yml Updating the transaction key Jun 29, 2016

README.md

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