GithubHelp home page GithubHelp logo

nebulab / solidus_virtual_gift_card Goto Github PK

View Code? Open in Web Editor NEW

This project forked from solidusio-contrib/solidus_virtual_gift_card

1.0 8.0 1.0 353 KB

:gift: Virtual gift card implementation for Solidus.

License: BSD 3-Clause "New" or "Revised" License

Ruby 85.65% CoffeeScript 0.41% HTML 13.95%

solidus_virtual_gift_card's Introduction

Solidus - Virtual Gift Card

CircleCI

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:

gem "solidus_virtual_gift_card"

Bundle your dependencies and run the installation generator:

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

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.

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:

require "spree_virtual_gift_card/factories"

solidus_virtual_gift_card's People

Contributors

richardnuno avatar adammathys avatar philbirt avatar aldesantis avatar athal7 avatar jhawthorn avatar allisonlarson avatar brchristian avatar kennyadsl avatar jordan-brough avatar magnusvk avatar plongyear avatar papayaah avatar gmacdougall avatar senjai avatar exsuzme avatar cbrunsdon avatar spaghetticode avatar antoniobonanno avatar bosskovic avatar mtomov avatar

Stargazers

Héctor avatar

Watchers

 avatar  avatar James Cloos avatar Davide Di Stefano avatar Georgy Shabunin avatar Paolo Tatone avatar Shana Remigio avatar  avatar

Forkers

askl56

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.