This repository contains working code samples which demonstrate ruby integration with the Authorize.Net API
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CustomerProfiles Update get-accept-customer-profile-page.rb Dec 12, 2017
FraudManagement add random invoice number to prevent duplicate transaction errors dur… Oct 18, 2017
MobileInAppTransactions
PayPalExpressCheckout Update authorization-only-continued.rb Mar 12, 2018
PaymentTransactions Fix invalid routing number being used for test bank account. May 10, 2018
RecurringBilling
TransactionReporting Update get-batch-statistics.rb Feb 23, 2018
VisaCheckout add random invoice number to prevent duplicate transaction errors dur… Oct 18, 2017
spec Remove Void test run Mar 12, 2018
.gitignore changes to get tests to pass again Jul 12, 2017
.travis.yml
Gemfile Update Gemfile Apr 25, 2017
LICENSE
README.md correct punctuation Oct 17, 2017
credentials.yml

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
    $ git clone https://github.com/AuthorizeNet/sample-code-ruby
  • Run the individual samples by name. For example:
    $ ruby PaymentTransactions/[CodeSampleName]

e.g.

    $ ruby PaymentTransactions/charge-credit-card.rb