Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solidusio-contrib/solidus_virtual_gift_card
Virtual gift cards for your Solidus store.
https://github.com/solidusio-contrib/solidus_virtual_gift_card
ecommerce extension gift-cards solidus store-credit
Last synced: about 1 month ago
JSON representation
Virtual gift cards for your Solidus store.
- Host: GitHub
- URL: https://github.com/solidusio-contrib/solidus_virtual_gift_card
- Owner: solidusio-contrib
- License: bsd-3-clause
- Created: 2015-06-22T20:44:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-08T20:00:36.000Z (almost 2 years ago)
- Last Synced: 2024-12-20T14:33:05.244Z (about 2 months ago)
- Topics: ecommerce, extension, gift-cards, solidus, store-credit
- Language: Ruby
- Homepage:
- Size: 365 KB
- Stars: 30
- Watchers: 9
- Forks: 45
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Solidus - Virtual Gift Card
===========================[![CircleCI](https://circleci.com/gh/solidusio-contrib/solidus_virtual_gift_card.svg?style=svg)](https://circleci.com/gh/solidusio-contrib/solidus_virtual_gift_card)
A virtual gift card implementation for Solidus.
* Allows setup of virtual gift card products that get unique codes upon
purchase.
* The virtual gift card codes can be used to add store credit to a user's
account.Installation
------------In your Gemfile:
```ruby
gem "solidus_virtual_gift_card"
```Bundle your dependencies and run the installation generator:
```shell
bundle install
bundle exec rails g solidus_virtual_gift_card:install
```Authorization
-------------For discrete authorization, two permission sets have been added to allow for granular display in the admin.
`Spree::PermissionSets::VirtualGiftCardDisplay` and `Spree::PermissionSets::VirtualGiftCardManagement` have been added and can be registered via [RoleConfiguration](http://docs.solidus.io/Spree/RoleConfiguration.html)
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`.```shell
bundle
bundle exec rake
```When testing your application's integration with this extension you may use its
factories. Simply add this require statement to your spec_helper:```ruby
require "solidus_virtual_gift_card/factories"
```