Skip to content

maxtavanti/spree_wallet

 
 

Repository files navigation

SpreeWallet

Installation

Add spree_wallet to your Gemfile:

gem 'spree_wallet', :git => 'git://github.com/vinsol/spree_wallet.git'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_wallet:install
bundle exec rake db:migrate

Usage

From Admin end, create a payment method of Wallet type. From User end, user can only select or unselect wallet payment type. Spree Wallet will deduce minimum of order total and spree wallet balance of that user. If there's any remaining amount in the order it will be deducted from other payment method choosen by the user.

While from admin end, Admin can select any amount from wallet, but it should be less than amount present in user's balance.

Contribution

You need to do a quick one-time creation of a test application and then you can use it to run the tests.

bundle exec rake test_app

Then run the rspec tests with mysql.

bundle exec rspec .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 99.9%
  • CSS 0.1%