SpreeGiftCard is an extension and one stop solution to integrate gift card functionality in a spree application.
This extension allows the admin to create a gift card, by just enabling it from Admin end.
Gift card is treated and can be bought as any normal product from your spree store. When a gift card is successfully bought, its details are sent to recipient's email address, which includes gift card
Recipient can then redeem the gift card by entering the unique gift card
Codeduring checkout on payment step.
Just add this line to your
gem 'spree_gift_card', github: 'praesensco/spree_gift_card'
Execute the following commands in respective order:
rails g spree_gift_card:install
seed the default data with:
rails g spree_gift_card:seed
A gift card is created by default when you seed data. Admin can also create
Admin -> Products -> New
while creating a new gift card, check
is gift card, which means the product is gift card.
Once gift card is created, it is visible to customer.
One needs to add gift card shipping category to a shipping method to purchase a gift card.
When purchasing a gift card, a form is rendered to user, on which one can fill the
note. Once your order-payment is successfully captured, the gift card will be send to the email mentioned in gift card form.
One can redeem the gift card by applying gift card code at payment step.
Here is a detailed article with screenshot http://vinsol.com/spreecommerce-gift-card
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: