Spree extension for using the Komoju Payments API.

Last updated on: July 10 at 08:41 AM

source code bug tracker
6 6 11
owner:  degica


This gem is no longer maintained by Degica. Please consult the Komoju Docs for other ways of integrating your e-commerce site with Komoju.


SpreeKomoju provides a comprehensive integration for all Komoju payment methods with a single gem, including Credit Card, Konbini, PayEasy, and Bank Transfer.


Add spree_komoju to your Gemfile:

gem 'spree_komoju'

Bundle your dependencies and run the installation generator:

bundle exec rails g spree_komoju:install


You will need to setup a webhook to complete non credit card payments options. This is because payment options like Konbini, Bank Transfer, etc. are completed offline.

Adding spree_komoju will expose a new route http://localhost:3000/komoju/callback which expects a payment.captured webhook. You can configure a secret token for your callback endpoint using the following configuration code:

# config/initializers/spree_komoju.rb
SpreeKomoju.komoju_webhook_secret_token = 'MY WEBHOOK SECRET'


First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_komoju/factories'

Copyright (c) 2015 Degica, released under the New BSD License

compatible spree versions
tags spree versions
master ~> 3.0.0
v0.0.1 ~> 3.0.0
v0.0.2 ~> 3.0.0
v0.0.3 ~> 3.0.0
v0.0.4 ~> 3.0.0
v0.0.5 ~> 3.0.0
v0.0.6 ~> 3.0.0
v0.0.7 ~> 3.0.0
v0.0.8 ~> 3.0.0
v0.0.9 ~> 3.0.0
v0.1.0 ~> 3.0.0
v0.1.1 ~> 3.0.0
v0.1.2 ~> 3.0.0
v0.1.3 ~> 3.0.0
v0.1.4 ~> 3.0.0
Masahiro Saito Chris Salzberg Richard Ramsden