Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinsol-spree-contrib/spree_wallet
Wallet payment method for spree
https://github.com/vinsol-spree-contrib/spree_wallet
Last synced: 8 days ago
JSON representation
Wallet payment method for spree
- Host: GitHub
- URL: https://github.com/vinsol-spree-contrib/spree_wallet
- Owner: vinsol-spree-contrib
- License: bsd-3-clause
- Created: 2013-07-23T06:57:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T10:01:22.000Z (almost 7 years ago)
- Last Synced: 2024-10-03T19:45:32.215Z (about 1 month ago)
- Language: Ruby
- Homepage: http://vinsol.com/spreecommerce-wallet
- Size: 119 KB
- Stars: 11
- Watchers: 34
- Forks: 27
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SpreeWallet [![Code Climate](https://codeclimate.com/github/vinsol/spree_wallet.png)](https://codeclimate.com/github/vinsol/spree_wallet) [![Build Status](https://travis-ci.org/vinsol/spree_wallet.png?branch=master)](https://travis-ci.org/vinsol/spree_wallet)
===========Installation
------------Add spree_wallet to your Gemfile:
```ruby
gem 'spree_wallet'
```But if you are using older version of spree
```ruby
# Spree 2.1.x
gem 'spree_wallet', '2.1.0'
``````ruby
# Spree 2.0.x
gem 'spree_wallet', '2.0.6'
``````ruby
# Spree 3.0.x
gem 'spree_wallet', '3.0.0'
```Bundle your dependencies and run the installation generator:
```shell
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.
**Here is a detailed article with screenshot http://vinsol.com/spreecommerce-wallet**
Testing
-------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 .
Credits
-------[![vinsol.com: Ruby on Rails, iOS and Android developers](http://vinsol.com/vin_logo.png "Ruby on Rails, iOS and Android developers")](http://vinsol.com)
Copyright (c) 2016 [vinsol.com](http://vinsol.com "Ruby on Rails, iOS and Android developers"), released under the New MIT License