Skip to content

mjallday/balanced-ach-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Balanced

Online Marketplace Payments

Build Status

Installation

Add this line to your application's Gemfile:

gem 'balanced-ach'

And then execute:

$ bundle

Or install it yourself as:

$ gem install balanced-ach

Usage

Create a Bank Account

require 'balanced_ach'

# create a bank account
ba = Balanced::BankAccount.new(
    :name => "Gottfried Leibniz",
    :account_number => "3819372930",
:routing_number => "121042882",
	:type => "checking"
).save

# credit this bank account $1.00 USD
ba.credit(:amount => 100)

# debit this bank account $1.00 USD
ba.debit(:amount => 100)

# retrieve this bank account at a later date
Balanced::BankAccount.find(ba.uri)

# delete this bank account
ba.unstore

Debit a Bank Account

require 'balanced_ach'

# debit this bank account $1.00 USD
Balanced::Debit.new(
:bank_account => {
        :name => "Gottfried Leibniz",
    :account_number => "3819372930",
        :routing_number => "121042882",
    :type => "checking"
}, :amount => 100
).save

Credit a Bank Account

require 'balanced_ach'

# credit this bank account $1.00 USD
Balanced::Credit.new(
    :bank_account => {
        :name => "Gottfried Leibniz",
        :account_number => "3819372930",
        :routing_number => "121042882",
        :type => "checking"
    }, :amount => 100
).save

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages