spree_komoju

Spree extension for using the Komoju Payments API.

Last updated on: July 10 at 08:41 AM

source code bug tracker
Opensource
6 6 11
owner:  degica

THIS GEM IS DEPRECATED

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

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

Installation

Add spree_komoju to your Gemfile:

gem 'spree_komoju'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_komoju:install

Webhooks

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'

Testing

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
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
authors
Masahiro Saito Chris Salzberg Richard Ramsden