This Spree extension allows admin to provide bank transfer payment method to its users for.
Add spree_bank_transfer to your Gemfile:
gem 'spree-bank-transfer'
For older versions of Spree.
# Spree 2.1.0
gem 'spree-bank-transfer', '2.1.0'
# Spree 2.0.x
gem 'spree-bank-transfer', '2.0.5', require: 'spree_bank_transfer'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g spree_bank_transfer:install
Login as Admin and create a new payment method with Spree::PaymentMethod::BankTransfer as provider class.
Create bank details under configuration/banks.
Checkout and select bank transfer payment method. Here, user can see the list of bank details.
Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
bundle
bundle exec rake test_app
bundle exec rspec spec
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_bank_transfer/factories'
- Fork the repo.
- Clone your repo.
- Run
bundle install
. - Run
bundle exec rake test_app
to create the test application inspec/test_app
. - Make your changes.
- Ensure specs pass by running
bundle exec rspec spec
. - Submit your pull request.
Copyright (c) 2014 vinsol.com, released under the New MIT License