
Security News
ESLint Adds Support for Parallel Linting, Closing 10-Year-Old Feature Request
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
ninjabutton_chargify_api_ares
Advanced tools
This is a Ruby wrapper for the Chargify API that leverages ActiveResource. It allows you to interface with the Chargify API using simple ActiveRecord-like syntax, i.e.:
Chargify::Subscription.create(
:customer_reference => 'moklett',
:product_handle => 'chargify-api-ares-test',
:credit_card_attributes => {
:first_name => "Michael",
:last_name => "Klett",
:expiration_month => 1,
:expiration_year => 2010,
:full_number => "1234-1234-1234-1234"
}
)
subscription.credit_card_attributes = {:expiration_year => 2013}
subscription.save
subscription.cancel
See the samples
directory for more usage examples.
This library can be installed as a gem. It is hosted on Gemcutter.
If you don't have your system set up to use gemcutter, follow the instructions on their site http://gemcutter.org, i.e.:
$ gem install gemcutter $ gem tumble
This will install Gemcutter and set your gem sources to search the gemcutter repos.
Then you can install this library as a gem:
$ gem install chargify_api_ares
This library requires ActiveResource version 2.3.4 or 2.3.5.
$ gem install activeresource
Simply require this library before you use it:
require 'chargify_api_ares'
If you're using Rails, you could include this gem in your configuration, i.e. in environment.rb
config.gem 'chargify_api_ares'
Now you'll have access to classes the interact with the Chargify API, such as:
Chargify::Product
Chargify::Customer
Chargifiy::Subscription
Check out the examples in the samples
directory. If you're not familiar with how ActiveResource works,
you may be interested in some ActiveResource Documentation
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.