/komoju-ruby

Komoju Ruby bindings

Primary LanguageRubyMIT LicenseMIT

Komoju

Komoju API Ruby Bindings

Installation

Add this line to your application's Gemfile:

gem 'komoju'

And then execute:

$ bundle

Or install it yourself as:

$ gem install komoju

Usage

client = Komoju.connect("api-secret-key")
client.payments.show("55404024b7b0dd6ec490158925")

payment_details = {
  type: "konbini",
  store: "lawson",
  email: "user@example.com",
  phone: "08011111111"
}

client.payments.create(amount: 100, currency: "JPY", external_order_num: "123", payment_details: payment_details)

Contributing

  1. Fork it ( https://github.com/[my-github-username]/komoju/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request