Skip to content

robertmassaioli/spree_bank_transfer

 
 

Repository files navigation

Spree Bank Transfer Code Climate Build Status

This Spree extension allows admin to provide bank transfer payment method to its users for.

Installation

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

Use

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.

Testing

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'

Contributing

  1. Fork the repo.
  2. Clone your repo.
  3. Run bundle install.
  4. Run bundle exec rake test_app to create the test application in spec/test_app.
  5. Make your changes.
  6. Ensure specs pass by running bundle exec rspec spec.
  7. Submit your pull request.

Credits

vinsol.com: Ruby on Rails, iOS and Android developers

Copyright (c) 2014 vinsol.com, released under the New MIT License

About

Allows admin to provide bank transfer payment method to its users in Spree

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%