Provides a ruby wrapper for the Pin Payments API (https://www.pin.net.au)
Add this line to your application's Gemfile:
gem 'hay'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hay
params = { 'number' => 5520000000000000, 'expiry_month' => 05, 'expiry_year' => 2013, 'cvc' => 123, 'name' => 'Roland Robot', 'address_line1' => '42 Sevenoaks St', 'address_line2' => '', 'address_city' => 'Lathlain', 'address_postcode' => 6454, 'address_state' => 'WA', 'address_country' => 'Australia' }
Hay::CardToken.create(api_key, params)
params = { 'amount' => 400, 'currency'=>'AUD', 'description'=>'test charge', 'email'=>'[email protected]', 'ip_address'=>'203.192.1.172', 'card' => { 'number' => 5520000000000000, 'expiry_month' => 05, 'expiry_year' => 2013, 'cvc' => 123, 'name' => 'Roland Robot', 'address_line1' => '42 Sevenoaks St', 'address_line2' => '', 'address_city' => 'Lathlain', 'address_postcode' => 6454, 'address_state' => 'WA', 'address_country' => 'Australia' } }
Hay::Charges.create(api_key, params)
Hay::Charges.list(api_key)
params = { 'query' => 'test+charge' }
Hay::Charges.search(api_key, params)
Hay::Charges.show(api_key, charges_token, params)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request