{"id":23765775,"url":"https://github.com/solidusio-contrib/solidus_virtual_gift_card","last_synced_at":"2025-04-07T09:16:31.650Z","repository":{"id":45078672,"uuid":"37879654","full_name":"solidusio-contrib/solidus_virtual_gift_card","owner":"solidusio-contrib","description":"Virtual gift cards for your Solidus store.","archived":false,"fork":false,"pushed_at":"2025-03-11T08:32:06.000Z","size":485,"stargazers_count":32,"open_issues_count":2,"forks_count":45,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-31T08:07:55.198Z","etag":null,"topics":["ecommerce","extension","gift-cards","solidus","store-credit"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solidusio-contrib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-22T20:44:32.000Z","updated_at":"2025-03-11T08:32:11.000Z","dependencies_parsed_at":"2025-01-13T09:32:58.343Z","dependency_job_id":"a1e2b7bb-4a3f-4dd5-a12c-22fde31b14fb","html_url":"https://github.com/solidusio-contrib/solidus_virtual_gift_card","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidusio-contrib%2Fsolidus_virtual_gift_card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidusio-contrib%2Fsolidus_virtual_gift_card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidusio-contrib%2Fsolidus_virtual_gift_card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidusio-contrib%2Fsolidus_virtual_gift_card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solidusio-contrib","download_url":"https://codeload.github.com/solidusio-contrib/solidus_virtual_gift_card/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247622988,"owners_count":20968575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecommerce","extension","gift-cards","solidus","store-credit"],"created_at":"2024-12-31T23:17:26.263Z","updated_at":"2025-04-07T09:16:31.632Z","avatar_url":"https://github.com/solidusio-contrib.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Solidus - Virtual Gift Card\n===========================\n\n[![CircleCI](https://circleci.com/gh/solidusio-contrib/solidus_virtual_gift_card.svg?style=svg)](https://circleci.com/gh/solidusio-contrib/solidus_virtual_gift_card)\n\nA virtual gift card implementation for Solidus.\n\n* Allows setup of virtual gift card products that get unique codes upon\n  purchase.\n* The virtual gift card codes can be used to add store credit to a user's\n  account.\n\nInstallation\n------------\n\nIn your Gemfile:\n\n```ruby\ngem \"solidus_virtual_gift_card\"\n```\n\nBundle your dependencies and run the installation generator:\n\n```shell\nbundle install\nbundle exec rails g solidus_virtual_gift_card:install\n```\n\nUse Gift Card during Checkout\n-----------------------------\n\n1) Visit /admin/payment_methods and add the Gift Card payment method. It should not be available to Users or Admins.\n2) During checkout, you can call the API POST /api/orders/:order_id/gift_card_codes(.:format) to add gift card codes to the order.\n3) At the finalization step, the gift cards listed on the order will be used as payment.\n\nAdd expire job\n--------------\n\nIf you want to change the configuration, you can add the following to an initializer:\n\nSolidusVirtualGiftCard::Config.tap do |config|\n  # Amount of time after which the authorized transaction should be voided\n  config.authorize_timeout = 1.month\n\n  config.schedule_job_class = 'SolidusVirtualGiftCard::VoidExpiredAuthorizedEventsJob'\nend\n\nThe last step in the installation process is to configure the SolidusVirtualGiftCard::VoidExpiredAuthorizedEventsJob background job to run regularly. There are different ways to do this depending on the environment your application is running in: Heroku Scheduler, cron etc.\n\nAuthorization\n-------------\n\nFor discrete authorization, two permission sets have been added to allow for granular display in the admin.\n\n`Spree::PermissionSets::VirtualGiftCardDisplay` and `Spree::PermissionSets::VirtualGiftCardManagement` have been added and can be registered via [RoleConfiguration](http://docs.solidus.io/Spree/RoleConfiguration.html)\n\nTesting\n-------\n\nFirst bundle your dependencies, then run `rake`. `rake` will default to\nbuilding the dummy app if it does not exist, then it will run specs. The dummy\napp can be regenerated by using `rake test_app`.\n\n```shell\nbundle\nbundle exec rake\n```\n\nWhen testing your application's integration with this extension you may use its\nfactories. Simply add this require statement to your spec_helper:\n\n```ruby\nrequire \"solidus_virtual_gift_card/factories\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidusio-contrib%2Fsolidus_virtual_gift_card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidusio-contrib%2Fsolidus_virtual_gift_card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidusio-contrib%2Fsolidus_virtual_gift_card/lists"}