Sha256: 5197273e0d46bdbcf84332330d8c6ea65760a272e25bcdad34f3877c36bdbf6f

Contents?: true

Size: 1.53 KB

Versions: 9

Compression:

Stored size: 1.53 KB

Contents

SpreeKomoju
===========

SpreeKomoju provides a comprehensive integration for all [Komoju](https://docs.komoju.com) payment methods with a single gem, including Credit Card, Konbini, PayEasy, and Bank Transfer.

Installation
------------

Add spree_komoju to your Gemfile:

```ruby
gem 'spree_komoju'
```

Bundle your dependencies and run the installation generator:

```shell
bundle
bundle exec rails g spree_komoju:install
```

Webhooks
--------

You will need to [setup a webhook](https://docs.komoju.com/api/webhooks) 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](https://docs.komoju.com/api/webhooks#secret_token)
for your callback endpoint using the following configuration code:

```ruby
# 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`.

```shell
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:

```ruby
require 'spree_komoju/factories'
```

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_komoju-0.1.4 README.md
spree_komoju-0.1.3 README.md
spree_komoju-0.1.2 README.md
spree_komoju-0.1.1 README.md
spree_komoju-0.1.0 README.md
spree_komoju-0.0.9 README.md
spree_komoju-0.0.8 README.md
spree_komoju-0.0.7 README.md
spree_komoju-0.0.6 README.md