GMO is a Ruby client library for the GMO Payment Platform, supporting the PG Multi Payment API, exec transactions, register users, and so on.
Install GMO as a gem:
gem install gmo
or add to your Gemfile:
# Gemfile
gem "gmo"
and run bundle install to install the dependency.
- add supported APIs
- improve docs
require 'gmo'
# setup
gmo = GMO::Payment::ShopAPI.new({:shop_id => "SHOP_ID", :shop_pass => "SHOP_PASS", :host => "foo.mul-pay.jp"})
#
option = {
:order_id => 1,
:job_cd => "AUTH",
:amount => 100
}
result = gmo.entry_tran(option)
More documentation available on the wiki.
Patches contributed by those people.