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:
Bundle your dependencies and run the installation generator:
bundle 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
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 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
bundle 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:
Copyright (c) 2015 Degica, released under the New BSD License