/spree_cash_on_delivery

Functionality to handle cash on delivery type payments for Spree Commerce.

Primary LanguageRubyBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Spree Cash On Delivery

Spree Cash On Delivery extension allows web store administrator to ship order before payment is done.

Instruction

  1. Define new payment method in the backend of the webstore. Assign PaymentMethod::CashOnDelivery type to it.
  2. Assign payment with method defined above to order.

Installation

Check available branches for specific version of Spree Commerce web store and add to your Gemfile:

gem 'spree_cash_on_delivery', github: 'musashimm/spree_on_cash_delivery', branch: <BRANCH_NAME>

For example for Spree version 3.0.x it goes:

gem 'spree_cash_on_delivery', github: 'musashimm/spree_on_cash_delivery', branch: 3-0-stable

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_cash_on_delivery:install

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_cash_on_delivery/factories'

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