{"id":20947908,"url":"https://github.com/chip/shopping_cart","last_synced_at":"2025-07-17T21:34:35.108Z","repository":{"id":657861,"uuid":"300646","full_name":"chip/shopping_cart","owner":"chip","description":"Ruby on Rails plugin with simple Shopping Cart functionality that uses ActiveMerchant for gateway processing","archived":false,"fork":false,"pushed_at":"2014-01-05T18:40:34.000Z","size":191,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T10:33:41.878Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://chip.github.io/shopping_cart/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chip.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-09-08T04:17:45.000Z","updated_at":"2019-08-13T14:27:58.000Z","dependencies_parsed_at":"2022-08-06T10:00:23.799Z","dependency_job_id":null,"html_url":"https://github.com/chip/shopping_cart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chip/shopping_cart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fshopping_cart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fshopping_cart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fshopping_cart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fshopping_cart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chip","download_url":"https://codeload.github.com/chip/shopping_cart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fshopping_cart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265663015,"owners_count":23807465,"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":[],"created_at":"2024-11-19T00:13:38.906Z","updated_at":"2025-07-17T21:34:35.061Z","avatar_url":"https://github.com/chip.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"ShoppingCart\n============\n\nThis Ruby on Rails plugin provides simple shopping cart functionality \nthat uses with ActiveMerchant for merchant gateway processing.\n\n*Tested with Rails 2.3.3\n\n\nExample\n=======\n    ./script/plugin install git@github.com:chip/shopping_cart.git\n    rake shopping_cart:setup\n    \n    This will create:\n      * A database migration file\n      * Views for carts, orders and products\n        \n    # You will need to setup the following in routes.rb:\n      # Root route is only necessary if you don't already have one setup\n      # map.root :controller =\u003e 'products', :action =\u003e 'index'\n      # Remaining routes for shopping cart plugin\n      map.resources :products\n      map.current_cart 'cart', :controller =\u003e 'carts', :action =\u003e 'show', :id =\u003e 'current'\n      map.resources :carts\n      map.resources :line_items\n      map.resources :orders\n\n\n    # You will need to setup your merchant gateway credentials (Example provided is for Paypal):\n    \n    # (config/development.rb):\n    ActiveMerchant::Billing::Base.mode = :test\n    ::GATEWAY = ActiveMerchant::Billing::PaypalGateway.new(\n      :login      =\u003e \"your paypal sandbox login\",\n      :password   =\u003e \"your paypal sandbox password\",\n      :signature  =\u003e \"your paypal sandbox signature\"\n    )\n    \n    # (config/test.rb):\n    config.after_initialize do\n      ActiveMerchant::Billing::Base.mode = :test\n      ::GATEWAY = ActiveMerchant::Billing::BogusGateway.new\n    end\n    \n    # (config/production.rb):\n    ::GATEWAY = ActiveMerchant::Billing::PaypalGateway.new(\n      :login      =\u003e \"your paypal login\",\n      :password   =\u003e \"your paypal password\",\n      :signature  =\u003e \"your paypal signature\"\n    )\n    \n    \n    # You will need to install and configure your gems:\n    sudo gem install activemerchant haml highline\n    \n    # You will need to restart your web server after editing environment.rb:\n    config.gem 'haml'\n    config.gem \"activemerchant\", :lib =\u003e \"active_merchant\", :version =\u003e \"1.4.1\"\n    \n    # Optionally, you can populate your products table with a few sample products\n    rake shopping_cart:products\n\n\nCopyright (c) 2009 Chip Castle Dot Com, Inc. released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchip%2Fshopping_cart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchip%2Fshopping_cart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchip%2Fshopping_cart/lists"}